@bitgo-beta/sdk-opensslbytes 1.0.0 → 1.0.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/{src/index.ts → dist/src/index.d.ts} +1 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +6 -0
- package/dist/src/opensslbytes.d.ts +4 -0
- package/dist/src/opensslbytes.d.ts.map +1 -0
- package/dist/src/opensslbytes.js +20 -0
- package/package.json +6 -3
- package/.eslintignore +0 -2
- package/src/opensslbytes.ts +0 -20
- package/tsconfig.json +0 -12
package/README.md
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# @bitgo/sdk-opensslbytes
|
|
2
|
+
|
|
3
|
+
Isolated module for users of the BitGo SDK that need to generate range proofs or recover funds on a TSS wallet.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```shell
|
|
8
|
+
npm i @bitgo/sdk-api @bitgo/sdk-lib-mpc @bitgo/sdk-opensslbytes
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Import the `openSSLBytes` from this module & pass to related functions that expect it:
|
|
12
|
+
|
|
13
|
+
```javascript
|
|
14
|
+
import { loadWebAssembly } from '@bitgo/sdk-opensslbytes';
|
|
15
|
+
import { EcdsaRangeProof } from '@bitgo-beta/sdk-lib-mpc';
|
|
16
|
+
|
|
17
|
+
const openSSLBytes = loadWebAssembly().buffer;
|
|
18
|
+
|
|
19
|
+
const nTilde = await EcdsaRangeProof.generateNtilde(openSSLBytes, 3072);
|
|
20
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadWebAssembly = void 0;
|
|
4
|
+
var opensslbytes_1 = require("./opensslbytes");
|
|
5
|
+
Object.defineProperty(exports, "loadWebAssembly", { enumerable: true, get: function () { return opensslbytes_1.loadWebAssembly; } });
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0NBQWlEO0FBQXhDLCtHQUFBLGVBQWUsT0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IGxvYWRXZWJBc3NlbWJseSB9IGZyb20gJy4vb3BlbnNzbGJ5dGVzJztcbiJdfQ==
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opensslbytes.d.ts","sourceRoot":"","sources":["../../src/opensslbytes.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,IAAI;IAAE,MAAM,EAAE,UAAU,CAAA;CAAE,CAUxD"}
|