Detalhes do pacote

@bitgo/sdk-opensslbytes

BitGo347MIT2.0.0

Split package for WASM code needed by sdk-lib-mpc

readme (leia-me)

@bitgo/sdk-opensslbytes

Isolated module for users of the BitGo SDK that need to generate range proofs or recover funds on a TSS wallet.

Installation

npm i @bitgo/sdk-api @bitgo/sdk-lib-mpc @bitgo/sdk-opensslbytes

Import the openSSLBytes from this module & pass to related functions that expect it:

import { loadWebAssembly } from '@bitgo/sdk-opensslbytes';
import { EcdsaRangeProof } from '@bitgo-beta/sdk-lib-mpc';

const openSSLBytes = loadWebAssembly().buffer;

const nTilde = await EcdsaRangeProof.generateNtilde(openSSLBytes, 3072);