@arcanetech/privacy-sdk-stellar 0.2.3 → 0.4.1
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 +6 -6
- package/dist/index.d.ts +310 -157
- package/dist/index.js +2505 -1817
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +53 -116
- package/dist/node.js +1506 -1622
- package/dist/node.js.map +1 -1
- package/dist/state/index.d.ts +7 -122
- package/dist/state/index.js +96 -490
- package/dist/state/index.js.map +1 -1
- package/dist/testing/index.d.ts +14 -32
- package/dist/transact/index.d.ts +366 -59
- package/dist/transact/index.js +2484 -924
- package/dist/transact/index.js.map +1 -1
- package/generated/contract/README.md +4 -4
- package/generated/contract/dist/index.d.ts +270 -197
- package/generated/contract/dist/index.js +94 -52
- package/generated/contract/package.json +1 -1
- package/generated/contract/src/index.ts +239 -183
- package/generated/registry/README.md +4 -4
- package/generated/registry/dist/index.d.ts +56 -123
- package/generated/registry/dist/index.js +39 -37
- package/generated/registry/package.json +1 -1
- package/generated/registry/src/index.ts +56 -132
- package/package.json +8 -8
|
@@ -31,59 +31,47 @@ if (typeof window !== "undefined") {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
testnet: {
|
|
36
|
-
networkPassphrase: "Test SDF Network ; September 2015",
|
|
37
|
-
contractId: "CCO5QRTS5HFVPR356FFC4NI62IMBQNDGMOAXR4K5UVTV3YMRWDZGKXGC",
|
|
38
|
-
}
|
|
39
|
-
} as const
|
|
34
|
+
|
|
40
35
|
|
|
41
36
|
export const Errors = {
|
|
42
37
|
1: {message:"OnlyAdmin"},
|
|
38
|
+
/**
|
|
39
|
+
* Reserved: trusted-pool coupling removed (N2/N6). Do not reuse.
|
|
40
|
+
*/
|
|
43
41
|
2: {message:"UntrustedCaller"},
|
|
42
|
+
/**
|
|
43
|
+
* Reserved: pending-note index removed (N2). Do not reuse.
|
|
44
|
+
*/
|
|
44
45
|
3: {message:"DuplicatePendingNullifier"},
|
|
46
|
+
/**
|
|
47
|
+
* Reserved: pending-note payload removed (M1). Do not reuse.
|
|
48
|
+
*/
|
|
45
49
|
4: {message:"ForbiddenEphemeralScalar"},
|
|
46
|
-
5: {message:"EmptyNotes"}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Plaintext note fields stored in registry for onboarding claim.
|
|
52
|
-
*/
|
|
53
|
-
export interface PlaintextNote {
|
|
54
|
-
asset_hi: Buffer;
|
|
55
|
-
asset_lo: Buffer;
|
|
56
50
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
public_key_y: Buffer;
|
|
51
|
+
* Reserved: pending-note payload removed (N6). Do not reuse.
|
|
52
|
+
*/
|
|
53
|
+
5: {message:"EmptyNotes"},
|
|
54
|
+
/**
|
|
55
|
+
* A required constructor-set config value is missing; only reachable if the
|
|
56
|
+
* contract is queried before `__constructor` has run.
|
|
57
|
+
*/
|
|
58
|
+
6: {message:"NotInitialized"},
|
|
59
|
+
/**
|
|
60
|
+
* Owner already has a registered private address with a different public key; private
|
|
61
|
+
* addresses are permanent and cannot be changed once registered.
|
|
62
|
+
*/
|
|
63
|
+
7: {message:"PrivateAddressImmutable"},
|
|
64
|
+
/**
|
|
65
|
+
* The given public key is already registered to a different owner.
|
|
66
|
+
*/
|
|
67
|
+
8: {message:"PublicKeyAlreadyRegistered"}
|
|
75
68
|
}
|
|
76
69
|
|
|
77
|
-
export type OptionalPrivateAddressRegistration = {tag: "None", values: void} | {tag: "Some", values: readonly [PrivateAddressRegistration]};
|
|
78
70
|
|
|
79
71
|
|
|
80
|
-
export interface
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
owner: string;
|
|
84
|
-
private_address_registration: OptionalPrivateAddressRegistration;
|
|
85
|
-
temp_public_key_x: Buffer;
|
|
86
|
-
temp_public_key_y: Buffer;
|
|
72
|
+
export interface KytPassageRecord {
|
|
73
|
+
consumed: boolean;
|
|
74
|
+
expires_at_ledger: u32;
|
|
87
75
|
}
|
|
88
76
|
|
|
89
77
|
|
|
@@ -95,93 +83,47 @@ export interface PrivateAddressRecord {
|
|
|
95
83
|
}
|
|
96
84
|
|
|
97
85
|
|
|
98
|
-
export interface PendingNullifierRecord {
|
|
99
|
-
created_at_ledger: u32;
|
|
100
|
-
created_by: string;
|
|
101
|
-
encrypted_private_key: Buffer;
|
|
102
|
-
note: PlaintextNote;
|
|
103
|
-
owner: string;
|
|
104
|
-
temp_public_key_x: Buffer;
|
|
105
|
-
temp_public_key_y: Buffer;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
export interface KytPassageRecord {
|
|
110
|
-
expires_at_ledger: u32;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
86
|
export interface KytPassageAuthorization {
|
|
115
87
|
expiration_ledger: u32;
|
|
116
88
|
signature: Buffer;
|
|
117
89
|
}
|
|
118
90
|
|
|
119
|
-
export interface Client {
|
|
120
|
-
/**
|
|
121
|
-
* Construct and simulate a set_trusted_pool transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
122
|
-
*/
|
|
123
|
-
set_trusted_pool: ({admin, trusted_pool}: {admin: string, trusted_pool: string}, options?: MethodOptions) => Promise<AssembledTransaction<null>>
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Construct and simulate a get_trusted_pool transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
127
|
-
*/
|
|
128
|
-
get_trusted_pool: (options?: MethodOptions) => Promise<AssembledTransaction<string>>
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Construct and simulate a register_private_address transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
132
|
-
* Owner registers a permanent private address directly.
|
|
133
|
-
*/
|
|
134
|
-
register_private_address: ({owner, public_key_x, public_key_y}: {owner: string, public_key_x: Buffer, public_key_y: Buffer}, options?: MethodOptions) => Promise<AssembledTransaction<null>>
|
|
135
91
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
92
|
+
export interface PrivateAddressRegistration {
|
|
93
|
+
owner: string;
|
|
94
|
+
public_key_x: Buffer;
|
|
95
|
+
public_key_y: Buffer;
|
|
96
|
+
}
|
|
141
97
|
|
|
98
|
+
export interface Client {
|
|
142
99
|
/**
|
|
143
100
|
* Construct and simulate a get_private_address transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
144
101
|
*/
|
|
145
102
|
get_private_address: ({owner}: {owner: string}, options?: MethodOptions) => Promise<AssembledTransaction<Option<PrivateAddressRecord>>>
|
|
146
103
|
|
|
147
|
-
/**
|
|
148
|
-
* Construct and simulate a get_owner_by_public_key transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
149
|
-
* Resolve the Stellar G-address owner from a registered private-address public key.
|
|
150
|
-
*/
|
|
151
|
-
get_owner_by_public_key: ({public_key_x, public_key_y}: {public_key_x: Buffer, public_key_y: Buffer}, options?: MethodOptions) => Promise<AssembledTransaction<Option<string>>>
|
|
152
|
-
|
|
153
104
|
/**
|
|
154
105
|
* Construct and simulate a seed_private_address transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
155
106
|
* Admin-only migration helper: seed forward and reverse indexes without owner auth.
|
|
156
107
|
*/
|
|
157
|
-
seed_private_address: ({
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Construct and simulate a register_pending_notes transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
161
|
-
* Trusted pool registers onboarding pending notes.
|
|
162
|
-
*/
|
|
163
|
-
register_pending_notes: ({sender, payload}: {sender: string, payload: OnboardingPayload}, options?: MethodOptions) => Promise<AssembledTransaction<null>>
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Construct and simulate a auth_address_for_nullifier transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
167
|
-
*/
|
|
168
|
-
auth_address_for_nullifier: ({nullifier_hash}: {nullifier_hash: Buffer}, options?: MethodOptions) => Promise<AssembledTransaction<Option<string>>>
|
|
108
|
+
seed_private_address: ({registration, updated_at_ledger}: {registration: PrivateAddressRegistration, updated_at_ledger: u32}, options?: MethodOptions) => Promise<AssembledTransaction<null>>
|
|
169
109
|
|
|
170
110
|
/**
|
|
171
|
-
* Construct and simulate a
|
|
111
|
+
* Construct and simulate a get_owner_by_public_key transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
112
|
+
* Resolve the Stellar G-address owner from a registered private-address public key.
|
|
172
113
|
*/
|
|
173
|
-
|
|
114
|
+
get_owner_by_public_key: ({public_key_x, public_key_y}: {public_key_x: Buffer, public_key_y: Buffer}, options?: MethodOptions) => Promise<AssembledTransaction<Option<string>>>
|
|
174
115
|
|
|
175
116
|
/**
|
|
176
|
-
* Construct and simulate a
|
|
117
|
+
* Construct and simulate a register_private_address transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
|
|
118
|
+
* Owner registers a permanent private address directly.
|
|
177
119
|
*/
|
|
178
|
-
|
|
120
|
+
register_private_address: ({owner, public_key_x, public_key_y}: {owner: string, public_key_x: Buffer, public_key_y: Buffer}, options?: MethodOptions) => Promise<AssembledTransaction<null>>
|
|
179
121
|
|
|
180
122
|
}
|
|
181
123
|
export class Client extends ContractClient {
|
|
182
124
|
static async deploy<T = Client>(
|
|
183
125
|
/** Constructor/Initialization Args for the contract's `__constructor` method */
|
|
184
|
-
{admin
|
|
126
|
+
{admin}: {admin: string},
|
|
185
127
|
/** Options for initializing a Client as well as for calling a method, with extras specific to deploying. */
|
|
186
128
|
options: MethodOptions &
|
|
187
129
|
Omit<ContractClientOptions, "contractId"> & {
|
|
@@ -193,46 +135,28 @@ export class Client extends ContractClient {
|
|
|
193
135
|
format?: "hex" | "base64";
|
|
194
136
|
}
|
|
195
137
|
): Promise<AssembledTransaction<T>> {
|
|
196
|
-
return ContractClient.deploy({admin
|
|
138
|
+
return ContractClient.deploy({admin}, options)
|
|
197
139
|
}
|
|
198
140
|
constructor(public readonly options: ContractClientOptions) {
|
|
199
141
|
super(
|
|
200
|
-
new ContractSpec([ "
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"AAAAAAAAAAAAAAAQZ2V0X3RydXN0ZWRfcG9vbAAAAAAAAAABAAAAEw==",
|
|
204
|
-
"AAAAAAAAADVPd25lciByZWdpc3RlcnMgYSBwZXJtYW5lbnQgcHJpdmF0ZSBhZGRyZXNzIGRpcmVjdGx5LgAAAAAAABhyZWdpc3Rlcl9wcml2YXRlX2FkZHJlc3MAAAADAAAAAAAAAAVvd25lcgAAAAAAABMAAAAAAAAADHB1YmxpY19rZXlfeAAAA+4AAAAgAAAAAAAAAAxwdWJsaWNfa2V5X3kAAAPuAAAAIAAAAAA=",
|
|
205
|
-
"AAAAAAAAAExUcnVzdGVkIHBvb2wgZm9yd2FyZHMgcmVnaXN0cmF0aW9uIGFmdGVyIG93bmVyIGF1dGgga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dXRob3JpemF0aW9uAAAAAAIAAAAAAAAAEWV4cGlyYXRpb25fbGVkZ2VyAAAAAAAABAAAAAAAAAAJc2lnbmF0dXJlAAAAAAAD7gAAAEA=",
|
|
152
|
+
"AAAAAQAAAAAAAAAAAAAAGlByaXZhdGVBZGRyZXNzUmVnaXN0cmF0aW9uAAAAAAADAAAAAAAAAAVvd25lcgAAAAAAABMAAAAAAAAADHB1YmxpY19rZXlfeAAAA+4AAAAgAAAAAAAAAAxwdWJsaWNfa2V5X3kAAAPuAAAAIA==" ]),
|
|
222
153
|
options
|
|
223
154
|
)
|
|
224
155
|
}
|
|
225
156
|
public readonly fromJSON = {
|
|
226
|
-
|
|
227
|
-
get_trusted_pool: this.txFromJSON<string>,
|
|
228
|
-
register_private_address: this.txFromJSON<null>,
|
|
229
|
-
register_address_via_pool: this.txFromJSON<null>,
|
|
230
|
-
get_private_address: this.txFromJSON<Option<PrivateAddressRecord>>,
|
|
231
|
-
get_owner_by_public_key: this.txFromJSON<Option<string>>,
|
|
157
|
+
get_private_address: this.txFromJSON<Option<PrivateAddressRecord>>,
|
|
232
158
|
seed_private_address: this.txFromJSON<null>,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
get_pending_nullifier_record: this.txFromJSON<Option<PendingNullifierRecord>>,
|
|
236
|
-
future_nullifier_hash: this.txFromJSON<Buffer>
|
|
159
|
+
get_owner_by_public_key: this.txFromJSON<Option<string>>,
|
|
160
|
+
register_private_address: this.txFromJSON<null>
|
|
237
161
|
}
|
|
238
162
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcanetech/privacy-sdk-stellar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Stellar preset for the Arcane privacy SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"browser": "./dist/index.js",
|
|
@@ -41,24 +41,24 @@
|
|
|
41
41
|
"README.md"
|
|
42
42
|
],
|
|
43
43
|
"scripts": {
|
|
44
|
-
"bindings:generate": "soroban contract bindings typescript --rpc-url https://soroban-testnet.stellar.org --network-passphrase \"Test SDF Network ; September 2015\" --contract-id
|
|
44
|
+
"bindings:generate": "soroban contract bindings typescript --rpc-url https://soroban-testnet.stellar.org --network-passphrase \"Test SDF Network ; September 2015\" --contract-id CD56SAQXVPM3MWTTNVDBDVUEQC6DPRIIYHP67C3ICH6JGMLJSWWUFUON --output-dir ./generated/contract --overwrite && soroban contract bindings typescript --rpc-url https://soroban-testnet.stellar.org --network-passphrase \"Test SDF Network ; September 2015\" --contract-id CCO5QRTS5HFVPR356FFC4NI62IMBQNDGMOAXR4K5UVTV3YMRWDZGKXGC --output-dir ./generated/registry --overwrite",
|
|
45
45
|
"bindings:build": "npm run build --prefix generated/contract && npm run build --prefix generated/registry",
|
|
46
46
|
"prebuild": "npm run bindings:build",
|
|
47
47
|
"build": "tsup",
|
|
48
48
|
"typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.test.json"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@arcanetech/privacy-sdk-core": "
|
|
52
|
-
"@
|
|
53
|
-
"@stellar/stellar-sdk": "^
|
|
51
|
+
"@arcanetech/privacy-sdk-core": "0.3.0",
|
|
52
|
+
"@arcanetech/stellar-privacy-pool-zk-sdk": "^0.10.0",
|
|
53
|
+
"@stellar/stellar-sdk": "^16.0.1",
|
|
54
54
|
"buffer": "^6.0.3",
|
|
55
55
|
"contract": "file:./generated/contract",
|
|
56
56
|
"registry": "file:./generated/registry",
|
|
57
57
|
"zod": "^3.24.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@arcanetech/privacy-sdk-state-memory": "0.2.
|
|
61
|
-
"@arcanetech/privacy-sdk-state-redux": "0.2.
|
|
60
|
+
"@arcanetech/privacy-sdk-state-memory": "0.2.2",
|
|
61
|
+
"@arcanetech/privacy-sdk-state-redux": "0.2.2",
|
|
62
62
|
"@reduxjs/toolkit": "^2.6.1"
|
|
63
63
|
},
|
|
64
64
|
"sideEffects": false,
|
|
@@ -71,4 +71,4 @@
|
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
}
|
|
74
|
-
}
|
|
74
|
+
}
|