@taquito/sapling-wasm 0.1.0-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 +50 -0
- package/dist/f163b2ed6a9bb7b7e6a7_wasm.js +2 -0
- package/dist/f163b2ed6a9bb7b7e6a7_wasm.js.map +1 -0
- package/dist/index.browser.js +2 -0
- package/dist/index.browser.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.node.js +2 -0
- package/dist/index.node.js.map +1 -0
- package/dist/internal/address/payment-address.d.ts +8 -0
- package/dist/internal/key/authorizing-key.d.ts +2 -0
- package/dist/internal/key/key-agreement.d.ts +2 -0
- package/dist/internal/key/spending-key.d.ts +2 -0
- package/dist/internal/key/viewing-key.d.ts +5 -0
- package/dist/internal/parameters.d.ts +2 -0
- package/dist/internal/transaction/binding-signature.d.ts +2 -0
- package/dist/internal/transaction/commitment.d.ts +2 -0
- package/dist/internal/transaction/merkle-tree.d.ts +2 -0
- package/dist/internal/transaction/nullifier.d.ts +2 -0
- package/dist/internal/transaction/output-description.d.ts +5 -0
- package/dist/internal/transaction/spend-description.d.ts +5 -0
- package/dist/internal/types.d.ts +2 -0
- package/dist/internal/utils.d.ts +9 -0
- package/dist/sapling.d.ts +223 -0
- package/dist/types.d.ts +61 -0
- package/package.json +41 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A payment address with its diversifier index.
|
|
3
|
+
*
|
|
4
|
+
* @typedef {Object} SaplingPaymentAddress
|
|
5
|
+
* @property {Buffer} index An 11-byte diversifier index stored as a list of bytes in a little-endian (LE) format
|
|
6
|
+
* @property {Buffer} raw A 43-byte raw address value
|
|
7
|
+
*/
|
|
8
|
+
export interface SaplingPaymentAddress {
|
|
9
|
+
index: Buffer;
|
|
10
|
+
raw: Buffer;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A sapling Spend Description as described in section 4.4 of the protocol specification.
|
|
14
|
+
*
|
|
15
|
+
* @typedef {Object} SaplingSpendDescription
|
|
16
|
+
* @property {Buffer} cv
|
|
17
|
+
* @property {Buffer} rt
|
|
18
|
+
* @property {Buffer} nf
|
|
19
|
+
* @property {Buffer} rk
|
|
20
|
+
* @property {Buffer} proof
|
|
21
|
+
* @property {Buffer} spendAuthSig
|
|
22
|
+
*/
|
|
23
|
+
export interface SaplingSpendDescription {
|
|
24
|
+
cv: Buffer;
|
|
25
|
+
rt: Buffer;
|
|
26
|
+
nf: Buffer;
|
|
27
|
+
rk: Buffer;
|
|
28
|
+
proof: Buffer;
|
|
29
|
+
spendAuthSig: Buffer;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* An unsigned sapling Spend Description.
|
|
33
|
+
*
|
|
34
|
+
* @typedef {Object} SaplingUnsignedSpendDescription
|
|
35
|
+
*/
|
|
36
|
+
export type SaplingUnsignedSpendDescription = Omit<SaplingSpendDescription, 'spendAuthSig'>;
|
|
37
|
+
/**
|
|
38
|
+
* A sapling Output Description as described in section 4.5 of the protocol specification.
|
|
39
|
+
*
|
|
40
|
+
* @typedef {Object} SaplingOutputDescription
|
|
41
|
+
* @property {Buffer} cv
|
|
42
|
+
* @property {Buffer} cm
|
|
43
|
+
* @property {Buffer} epk
|
|
44
|
+
* @property {Buffer} cenc
|
|
45
|
+
* @property {Buffer} cout
|
|
46
|
+
* @property {Buffer} proof
|
|
47
|
+
*/
|
|
48
|
+
export interface SaplingOutputDescription {
|
|
49
|
+
cv: Buffer;
|
|
50
|
+
cm: Buffer;
|
|
51
|
+
epk: Buffer;
|
|
52
|
+
cenc: Buffer;
|
|
53
|
+
cout: Buffer;
|
|
54
|
+
proof: Buffer;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A partial sapling Output Description
|
|
58
|
+
*
|
|
59
|
+
* @typedef {Object} SaplingPartialOutputDescription
|
|
60
|
+
*/
|
|
61
|
+
export type SaplingPartialOutputDescription = Omit<SaplingOutputDescription, 'epk' | 'cenc' | 'cout'>;
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@taquito/sapling-wasm",
|
|
3
|
+
"version": "0.1.0-alpha.0",
|
|
4
|
+
"description": "Sapling Wasm bindings for Taquito and compatible consumers.",
|
|
5
|
+
"author": "ECAD Labs Inc <info@ecadlabs.com>",
|
|
6
|
+
"homepage": "https://github.com/ecadlabs/sapling-wasm",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/ecadlabs/sapling-wasm.git",
|
|
10
|
+
"directory": "packages/sapling-wasm"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/ecadlabs/sapling-wasm/issues"
|
|
14
|
+
},
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"main": "dist/index.node.js",
|
|
23
|
+
"browser": "dist/index.browser.js",
|
|
24
|
+
"types": "dist/index.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"browser": "./dist/index.browser.js",
|
|
29
|
+
"default": "./dist/index.node.js"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=22"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"clean": "rimraf dist pkg",
|
|
37
|
+
"build": "npm run clean && npm run build:bundle && npm run build:types",
|
|
38
|
+
"build:bundle": "webpack --mode=production",
|
|
39
|
+
"build:types": "tsc --project tsconfig.types.json"
|
|
40
|
+
}
|
|
41
|
+
}
|