@oneie/sdk 0.16.5 → 0.16.6
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/dist/.build-fingerprint +1 -0
- package/dist/address-proof.d.ts +51 -0
- package/dist/address-proof.d.ts.map +1 -0
- package/dist/address-proof.js +193 -0
- package/dist/address-proof.js.map +1 -0
- package/dist/receivers.d.ts +33 -3
- package/dist/receivers.d.ts.map +1 -1
- package/dist/receivers.js +32 -3
- package/dist/receivers.js.map +1 -1
- package/dist/work-contract-grammar.json +1 -0
- package/package.json +5 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5469c298c88135c8a91c8461f6548da66370fa1ab207ea715d041a8738866214
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/** The four chains, spelled the way the `wallets` row and `wallet:create` spell them. */
|
|
2
|
+
export type ProofChain = 'sui' | 'evm' | 'solana' | 'btc';
|
|
3
|
+
export declare const PROOF_CHAINS: readonly ProofChain[];
|
|
4
|
+
export declare function proofChain(chain: string): ProofChain | null;
|
|
5
|
+
/** What crosses the wire for one address. Both fields are hex, no 0x. */
|
|
6
|
+
export interface AddressProof {
|
|
7
|
+
/** sui: 32-byte ed25519 · btc: 33-byte compressed secp256k1 · evm/solana: optional, unused */
|
|
8
|
+
publicKey?: string;
|
|
9
|
+
signature: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ProofContext {
|
|
12
|
+
challenge: string;
|
|
13
|
+
workspace: string;
|
|
14
|
+
actor: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The exact bytes every address signs. Domain-separated by its first line so a
|
|
18
|
+
* registration signature is never a valid login or payment signature, and every
|
|
19
|
+
* field that makes it specific is inside it.
|
|
20
|
+
*/
|
|
21
|
+
export declare function addressProofMessage(ctx: ProofContext & {
|
|
22
|
+
chain: ProofChain;
|
|
23
|
+
address: string;
|
|
24
|
+
}): string;
|
|
25
|
+
/**
|
|
26
|
+
* Sign one address's statement. `privateKeyHex` is the 32-byte secret from the
|
|
27
|
+
* local keygen (`WalletKey.privateKeyHex`); only public bytes come back.
|
|
28
|
+
*/
|
|
29
|
+
export declare function signAddressProof(chain: ProofChain, privateKeyHex: string, message: string): AddressProof;
|
|
30
|
+
/**
|
|
31
|
+
* Sign every address a local keygen produced, in one pass. Takes the keygen's
|
|
32
|
+
* `keys` array and returns `{ addresses, proofs }` built field by field from the
|
|
33
|
+
* four known chains — a `mnemonic` or `privateKeyHex` on the input has no route
|
|
34
|
+
* into the result.
|
|
35
|
+
*/
|
|
36
|
+
export declare function proveAddresses(keys: ReadonlyArray<{
|
|
37
|
+
chain: string;
|
|
38
|
+
address: string;
|
|
39
|
+
privateKeyHex: string;
|
|
40
|
+
}>, ctx: ProofContext): {
|
|
41
|
+
addresses: Partial<Record<ProofChain, string>>;
|
|
42
|
+
proofs: Partial<Record<ProofChain, AddressProof>>;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Did the holder of `address` sign `message`? Boolean, never a throw: a malformed
|
|
46
|
+
* proof and a forged one are the same answer to the caller, which names its own
|
|
47
|
+
* refusal. The interesting failure is a VALID signature from the WRONG key, and
|
|
48
|
+
* the address-from-pubkey comparison is what catches it.
|
|
49
|
+
*/
|
|
50
|
+
export declare function verifyAddressProof(chain: ProofChain, address: string, proof: AddressProof | null | undefined, message: string): boolean;
|
|
51
|
+
//# sourceMappingURL=address-proof.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address-proof.d.ts","sourceRoot":"","sources":["../src/address-proof.ts"],"names":[],"mappings":"AAuCA,yFAAyF;AACzF,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,KAAK,CAAA;AACzD,eAAO,MAAM,YAAY,EAAE,SAAS,UAAU,EAAoC,CAAA;AAOlF,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAE3D;AAED,yEAAyE;AACzE,MAAM,WAAW,YAAY;IAC3B,8FAA8F;IAC9F,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,YAAY,GAAG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAStG;AAgDD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,YAAY,CAexG;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,aAAa,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC,EAC9E,GAAG,EAAE,YAAY,GAChB;IAAE,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC,CAAA;CAAE,CAUvG;AAID;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,YAAY,GAAG,IAAI,GAAG,SAAS,EACtC,OAAO,EAAE,MAAM,GACd,OAAO,CAqCT"}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
// address-proof.ts — prove you hold the key behind an address before ONE records it.
|
|
2
|
+
// Import via the `@oneie/sdk/address-proof` subpath.
|
|
3
|
+
//
|
|
4
|
+
// WHY THIS EXISTS. `wallet:create` used to write any address an agent's key sent
|
|
5
|
+
// it — a string, checked for nothing but first-write-wins. An address is where
|
|
6
|
+
// every future payment to that agent lands, so an unproven one is a payout
|
|
7
|
+
// redirect waiting for a typo or a hostile caller. An AGENT registration now
|
|
8
|
+
// carries one signature per address over a statement that names the server's
|
|
9
|
+
// fresh challenge, the workspace, the actor, the chain and the address itself, so
|
|
10
|
+
// a signature cannot be lifted onto another address, actor or challenge.
|
|
11
|
+
//
|
|
12
|
+
// ONE FORMAT, BOTH SIDES. The CLI signs with `signAddressProof` and one.ie verifies
|
|
13
|
+
// with `verifyAddressProof` from this same file, so the statement cannot drift
|
|
14
|
+
// between the signer and the checker.
|
|
15
|
+
//
|
|
16
|
+
// PUBLIC BYTES ONLY CROSS THE WIRE. A proof is `{ publicKey, signature }`. The
|
|
17
|
+
// private key goes into `signAddressProof` and nothing it returns contains it.
|
|
18
|
+
//
|
|
19
|
+
// SMALL ON PURPOSE. This module imports curves and hashes and nothing else — no
|
|
20
|
+
// BIP-39 wordlist, no BIP-32 — because the one.ie worker loads it and its server
|
|
21
|
+
// bundle has a ceiling. The address math is therefore re-stated here rather than
|
|
22
|
+
// imported from `./wallet.js`; the round-trip test (keys from `generateWallet`,
|
|
23
|
+
// verified here) is what proves the two agree.
|
|
24
|
+
//
|
|
25
|
+
// Formats, mirroring pay.one.ie's agent_wallet_register:
|
|
26
|
+
// sui raw ed25519 over the statement; address = blake2b(0x00 || pubkey)
|
|
27
|
+
// solana raw ed25519 over the statement; the address IS the base58 pubkey
|
|
28
|
+
// evm EIP-191 personal_sign, 65-byte r||s||v; the signer is recovered
|
|
29
|
+
// btc secp256k1 over sha256(statement); P2WPKH from the compressed pubkey
|
|
30
|
+
// (not BIP-322 — the signer is this package, not a browser wallet)
|
|
31
|
+
import { ed25519 } from '@noble/curves/ed25519.js';
|
|
32
|
+
import { secp256k1 } from '@noble/curves/secp256k1.js';
|
|
33
|
+
import { blake2b } from '@noble/hashes/blake2.js';
|
|
34
|
+
import { keccak_256 } from '@noble/hashes/sha3.js';
|
|
35
|
+
import { sha256 } from '@noble/hashes/sha2.js';
|
|
36
|
+
import { ripemd160 } from '@noble/hashes/legacy.js';
|
|
37
|
+
import { base58, bech32 } from '@scure/base';
|
|
38
|
+
export const PROOF_CHAINS = ['sui', 'evm', 'solana', 'btc'];
|
|
39
|
+
/** The SDK keygen spells two chains differently (`sol`, and `eth` in places). */
|
|
40
|
+
const CHAIN_ALIASES = {
|
|
41
|
+
sui: 'sui', evm: 'evm', eth: 'evm', ethereum: 'evm',
|
|
42
|
+
sol: 'solana', solana: 'solana', btc: 'btc', bitcoin: 'btc',
|
|
43
|
+
};
|
|
44
|
+
export function proofChain(chain) {
|
|
45
|
+
return CHAIN_ALIASES[String(chain).toLowerCase()] ?? null;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The exact bytes every address signs. Domain-separated by its first line so a
|
|
49
|
+
* registration signature is never a valid login or payment signature, and every
|
|
50
|
+
* field that makes it specific is inside it.
|
|
51
|
+
*/
|
|
52
|
+
export function addressProofMessage(ctx) {
|
|
53
|
+
return [
|
|
54
|
+
'ONE wallet registration',
|
|
55
|
+
`workspace: ${ctx.workspace}`,
|
|
56
|
+
`actor: ${ctx.actor}`,
|
|
57
|
+
`chain: ${ctx.chain}`,
|
|
58
|
+
`address: ${ctx.address}`,
|
|
59
|
+
`challenge: ${ctx.challenge}`,
|
|
60
|
+
].join('\n');
|
|
61
|
+
}
|
|
62
|
+
// ===== encoding =====
|
|
63
|
+
const enc = new TextEncoder();
|
|
64
|
+
function toHex(bytes) {
|
|
65
|
+
let s = '';
|
|
66
|
+
for (let i = 0; i < bytes.length; i++)
|
|
67
|
+
s += bytes[i].toString(16).padStart(2, '0');
|
|
68
|
+
return s;
|
|
69
|
+
}
|
|
70
|
+
function fromHex(hex) {
|
|
71
|
+
const h = hex.startsWith('0x') ? hex.slice(2) : hex;
|
|
72
|
+
if (h.length % 2 !== 0 || !/^[0-9a-fA-F]*$/.test(h))
|
|
73
|
+
throw new Error('not hex');
|
|
74
|
+
const out = new Uint8Array(h.length / 2);
|
|
75
|
+
for (let i = 0; i < out.length; i++)
|
|
76
|
+
out[i] = Number.parseInt(h.slice(i * 2, i * 2 + 2), 16);
|
|
77
|
+
return out;
|
|
78
|
+
}
|
|
79
|
+
function eip191Digest(message) {
|
|
80
|
+
const body = enc.encode(message);
|
|
81
|
+
const prefix = enc.encode(`\x19Ethereum Signed Message:\n${body.length}`);
|
|
82
|
+
const all = new Uint8Array(prefix.length + body.length);
|
|
83
|
+
all.set(prefix, 0);
|
|
84
|
+
all.set(body, prefix.length);
|
|
85
|
+
return keccak_256(all);
|
|
86
|
+
}
|
|
87
|
+
// ===== address from public key =====
|
|
88
|
+
function suiAddress(pub) {
|
|
89
|
+
const bytes = new Uint8Array(33);
|
|
90
|
+
bytes[0] = 0x00;
|
|
91
|
+
bytes.set(pub, 1);
|
|
92
|
+
return '0x' + toHex(blake2b(bytes, { dkLen: 32 }));
|
|
93
|
+
}
|
|
94
|
+
function evmAddress(uncompressed) {
|
|
95
|
+
return '0x' + toHex(keccak_256(uncompressed.slice(1)).slice(12));
|
|
96
|
+
}
|
|
97
|
+
function btcAddress(compressed) {
|
|
98
|
+
return bech32.encode('bc', [0, ...bech32.toWords(ripemd160(sha256(compressed)))]);
|
|
99
|
+
}
|
|
100
|
+
// ===== sign (client side — the private key never leaves this function) =====
|
|
101
|
+
/**
|
|
102
|
+
* Sign one address's statement. `privateKeyHex` is the 32-byte secret from the
|
|
103
|
+
* local keygen (`WalletKey.privateKeyHex`); only public bytes come back.
|
|
104
|
+
*/
|
|
105
|
+
export function signAddressProof(chain, privateKeyHex, message) {
|
|
106
|
+
const secret = fromHex(privateKeyHex);
|
|
107
|
+
const msg = enc.encode(message);
|
|
108
|
+
if (chain === 'sui' || chain === 'solana') {
|
|
109
|
+
return { publicKey: toHex(ed25519.getPublicKey(secret)), signature: toHex(ed25519.sign(msg, secret)) };
|
|
110
|
+
}
|
|
111
|
+
if (chain === 'evm') {
|
|
112
|
+
const sig = secp256k1.sign(eip191Digest(message), secret, { prehash: false, format: 'recovered' });
|
|
113
|
+
// noble's recovered format is recovery||r||s; EIP-191 wants r||s||v with v = 27 + recovery.
|
|
114
|
+
const rsv = new Uint8Array(65);
|
|
115
|
+
rsv.set(sig.slice(1, 65), 0);
|
|
116
|
+
rsv[64] = sig[0] + 27;
|
|
117
|
+
return { publicKey: toHex(secp256k1.getPublicKey(secret, false)), signature: toHex(rsv) };
|
|
118
|
+
}
|
|
119
|
+
return { publicKey: toHex(secp256k1.getPublicKey(secret, true)), signature: toHex(secp256k1.sign(msg, secret)) };
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Sign every address a local keygen produced, in one pass. Takes the keygen's
|
|
123
|
+
* `keys` array and returns `{ addresses, proofs }` built field by field from the
|
|
124
|
+
* four known chains — a `mnemonic` or `privateKeyHex` on the input has no route
|
|
125
|
+
* into the result.
|
|
126
|
+
*/
|
|
127
|
+
export function proveAddresses(keys, ctx) {
|
|
128
|
+
const addresses = {};
|
|
129
|
+
const proofs = {};
|
|
130
|
+
for (const k of keys) {
|
|
131
|
+
const chain = proofChain(k.chain);
|
|
132
|
+
if (!chain || typeof k.address !== 'string' || !k.address || typeof k.privateKeyHex !== 'string')
|
|
133
|
+
continue;
|
|
134
|
+
addresses[chain] = k.address;
|
|
135
|
+
proofs[chain] = signAddressProof(chain, k.privateKeyHex, addressProofMessage({ ...ctx, chain, address: k.address }));
|
|
136
|
+
}
|
|
137
|
+
return { addresses, proofs };
|
|
138
|
+
}
|
|
139
|
+
// ===== verify (server side) =====
|
|
140
|
+
/**
|
|
141
|
+
* Did the holder of `address` sign `message`? Boolean, never a throw: a malformed
|
|
142
|
+
* proof and a forged one are the same answer to the caller, which names its own
|
|
143
|
+
* refusal. The interesting failure is a VALID signature from the WRONG key, and
|
|
144
|
+
* the address-from-pubkey comparison is what catches it.
|
|
145
|
+
*/
|
|
146
|
+
export function verifyAddressProof(chain, address, proof, message) {
|
|
147
|
+
try {
|
|
148
|
+
if (!proof || typeof proof.signature !== 'string' || !address)
|
|
149
|
+
return false;
|
|
150
|
+
const sig = fromHex(proof.signature);
|
|
151
|
+
const msg = enc.encode(message);
|
|
152
|
+
if (chain === 'sui') {
|
|
153
|
+
const pub = fromHex(String(proof.publicKey ?? ''));
|
|
154
|
+
if (pub.length !== 32)
|
|
155
|
+
return false;
|
|
156
|
+
if (suiAddress(pub) !== address.toLowerCase())
|
|
157
|
+
return false;
|
|
158
|
+
return ed25519.verify(sig, msg, pub);
|
|
159
|
+
}
|
|
160
|
+
if (chain === 'solana') {
|
|
161
|
+
const pub = base58.decode(address);
|
|
162
|
+
if (pub.length !== 32)
|
|
163
|
+
return false;
|
|
164
|
+
return ed25519.verify(sig, msg, pub);
|
|
165
|
+
}
|
|
166
|
+
if (chain === 'evm') {
|
|
167
|
+
if (sig.length !== 65)
|
|
168
|
+
return false;
|
|
169
|
+
const v = sig[64] >= 27 ? sig[64] - 27 : sig[64];
|
|
170
|
+
if (v !== 0 && v !== 1)
|
|
171
|
+
return false;
|
|
172
|
+
const recovered = new Uint8Array(65);
|
|
173
|
+
recovered[0] = v;
|
|
174
|
+
recovered.set(sig.slice(0, 64), 1);
|
|
175
|
+
const pub = secp256k1.recoverPublicKey(recovered, eip191Digest(message), { prehash: false });
|
|
176
|
+
const uncompressed = secp256k1.Point.fromBytes(pub).toBytes(false);
|
|
177
|
+
return evmAddress(uncompressed) === address.toLowerCase();
|
|
178
|
+
}
|
|
179
|
+
if (chain === 'btc') {
|
|
180
|
+
const pub = fromHex(String(proof.publicKey ?? ''));
|
|
181
|
+
if (pub.length !== 33)
|
|
182
|
+
return false;
|
|
183
|
+
if (btcAddress(pub) !== address.toLowerCase())
|
|
184
|
+
return false;
|
|
185
|
+
return secp256k1.verify(sig, msg, pub);
|
|
186
|
+
}
|
|
187
|
+
return false;
|
|
188
|
+
}
|
|
189
|
+
catch {
|
|
190
|
+
return false;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
//# sourceMappingURL=address-proof.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address-proof.js","sourceRoot":"","sources":["../src/address-proof.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,qDAAqD;AACrD,EAAE;AACF,iFAAiF;AACjF,+EAA+E;AAC/E,2EAA2E;AAC3E,6EAA6E;AAC7E,6EAA6E;AAC7E,kFAAkF;AAClF,yEAAyE;AACzE,EAAE;AACF,oFAAoF;AACpF,+EAA+E;AAC/E,sCAAsC;AACtC,EAAE;AACF,+EAA+E;AAC/E,+EAA+E;AAC/E,EAAE;AACF,gFAAgF;AAChF,iFAAiF;AACjF,iFAAiF;AACjF,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,yDAAyD;AACzD,8EAA8E;AAC9E,6EAA6E;AAC7E,4EAA4E;AAC5E,gFAAgF;AAChF,6EAA6E;AAE7E,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAI5C,MAAM,CAAC,MAAM,YAAY,GAA0B,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAA;AAElF,iFAAiF;AACjF,MAAM,aAAa,GAA+B;IAChD,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK;IACnD,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG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;gBAAE,OAAO,KAAK,CAAA;YACpC,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAA;YACpC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;YAChB,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;YAClC,MAAM,GAAG,GAAG,SAAS,CAAC,gBAAgB,CAAC,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAA;YAC5F,MAAM,YAAY,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;YAClE,OAAO,UAAU,CAAC,YAAY,CAAC,KAAK,OAAO,CAAC,WAAW,EAAE,CAAA;QAC3D,CAAC;QACD,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;YACpB,MAAM,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,CAAA;YAClD,IAAI,GAAG,CAAC,MAAM,KAAK,EAAE;gBAAE,OAAO,KAAK,CAAA;YACnC,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,WAAW,EAAE;gBAAE,OAAO,KAAK,CAAA;YAC3D,OAAO,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;QACxC,CAAC;QACD,OAAO,KAAK,CAAA;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;AACH,CAAC"}
|
package/dist/receivers.d.ts
CHANGED
|
@@ -1291,8 +1291,8 @@ export declare const RECEIVERS: {
|
|
|
1291
1291
|
"identity:attest": Receiver<z.ZodObject<{
|
|
1292
1292
|
subject: z.ZodString;
|
|
1293
1293
|
method: z.ZodEnum<{
|
|
1294
|
-
google: "google";
|
|
1295
1294
|
key: "key";
|
|
1295
|
+
google: "google";
|
|
1296
1296
|
phone: "phone";
|
|
1297
1297
|
passkey: "passkey";
|
|
1298
1298
|
domain: "domain";
|
|
@@ -3916,6 +3916,25 @@ export declare const RECEIVERS: {
|
|
|
3916
3916
|
solana: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3917
3917
|
btc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3918
3918
|
}, z.core.$strip>>;
|
|
3919
|
+
challenge: z.ZodOptional<z.ZodString>;
|
|
3920
|
+
proofs: z.ZodOptional<z.ZodObject<{
|
|
3921
|
+
sui: z.ZodOptional<z.ZodObject<{
|
|
3922
|
+
publicKey: z.ZodOptional<z.ZodString>;
|
|
3923
|
+
signature: z.ZodString;
|
|
3924
|
+
}, z.core.$strip>>;
|
|
3925
|
+
evm: z.ZodOptional<z.ZodObject<{
|
|
3926
|
+
publicKey: z.ZodOptional<z.ZodString>;
|
|
3927
|
+
signature: z.ZodString;
|
|
3928
|
+
}, z.core.$strip>>;
|
|
3929
|
+
solana: z.ZodOptional<z.ZodObject<{
|
|
3930
|
+
publicKey: z.ZodOptional<z.ZodString>;
|
|
3931
|
+
signature: z.ZodString;
|
|
3932
|
+
}, z.core.$strip>>;
|
|
3933
|
+
btc: z.ZodOptional<z.ZodObject<{
|
|
3934
|
+
publicKey: z.ZodOptional<z.ZodString>;
|
|
3935
|
+
signature: z.ZodString;
|
|
3936
|
+
}, z.core.$strip>>;
|
|
3937
|
+
}, z.core.$strip>>;
|
|
3919
3938
|
}, z.core.$strip>, z.ZodObject<{
|
|
3920
3939
|
ok: z.ZodOptional<z.ZodBoolean>;
|
|
3921
3940
|
actor: z.ZodOptional<z.ZodString>;
|
|
@@ -3930,6 +3949,17 @@ export declare const RECEIVERS: {
|
|
|
3930
3949
|
error: z.ZodOptional<z.ZodString>;
|
|
3931
3950
|
field: z.ZodOptional<z.ZodString>;
|
|
3932
3951
|
}, z.core.$strip>>;
|
|
3952
|
+
"wallet:challenge": Receiver<z.ZodObject<{
|
|
3953
|
+
workspace: z.ZodOptional<z.ZodString>;
|
|
3954
|
+
actor: z.ZodOptional<z.ZodString>;
|
|
3955
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3956
|
+
ok: z.ZodOptional<z.ZodBoolean>;
|
|
3957
|
+
challenge: z.ZodOptional<z.ZodString>;
|
|
3958
|
+
workspace: z.ZodOptional<z.ZodString>;
|
|
3959
|
+
actor: z.ZodOptional<z.ZodString>;
|
|
3960
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
3961
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3962
|
+
}, z.core.$strip>>;
|
|
3933
3963
|
"wallet:rehearse": Receiver<z.ZodObject<{
|
|
3934
3964
|
chain: z.ZodLiteral<"sui">;
|
|
3935
3965
|
network: z.ZodLiteral<"testnet">;
|
|
@@ -5204,8 +5234,8 @@ export declare const RECEIVERS: {
|
|
|
5204
5234
|
}, z.core.$strip>;
|
|
5205
5235
|
details: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
5206
5236
|
paymentRail: z.ZodOptional<z.ZodEnum<{
|
|
5207
|
-
stripe: "stripe";
|
|
5208
5237
|
sui: "sui";
|
|
5238
|
+
stripe: "stripe";
|
|
5209
5239
|
}>>;
|
|
5210
5240
|
}, z.core.$strip>, z.ZodObject<{
|
|
5211
5241
|
ok: z.ZodBoolean;
|
|
@@ -5215,8 +5245,8 @@ export declare const RECEIVERS: {
|
|
|
5215
5245
|
confirmed: "confirmed";
|
|
5216
5246
|
}>>;
|
|
5217
5247
|
paymentRail: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
5218
|
-
stripe: "stripe";
|
|
5219
5248
|
sui: "sui";
|
|
5249
|
+
stripe: "stripe";
|
|
5220
5250
|
}>>>;
|
|
5221
5251
|
paymentIntent: z.ZodOptional<z.ZodObject<{
|
|
5222
5252
|
clientSecret: z.ZodString;
|
package/dist/receivers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"receivers.d.ts","sourceRoot":"","sources":["../src/receivers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,8EAA8E;AAC9E,YAAY,EAAE,UAAU,EAAE,CAAC;AAE3B,+DAA+D;AAC/D,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnE,oDAAoD;AACpD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;AAEzD,6CAA6C;AAC7C,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE9C;;;GAGG;AACH,MAAM,WAAW,QAAQ,CACvB,GAAG,SAAS,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU,EACvC,GAAG,SAAS,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU;IAEvC,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,OAAO,EAAE,GAAG,CAAC;IACb,oCAAoC;IACpC,QAAQ,EAAE,GAAG,CAAC;IACd,gEAAgE;IAChE,MAAM,EAAE,cAAc,CAAC;IACvB;;;iCAG6B;IAC7B,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;0GACsG;IACtG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;2EACuE;IACvE,K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MAAM,KAAK,CAAC,CAAC,SAAS,YAAY,IACtC,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAEzF,iDAAiD;AACjD,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS,YAAY,IACtC,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,QAAQ,CAAC,CAAC,CAAC,UAAU,EAAE,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE1F;;;;;GAKG;AACH,eAAO,MAAM,OAAO;IAClB,iFAAiF;;IAEjF,wDAAwD;;IAExD,iEAAiE;;IAEjE,mDAAmD;;IAEnD,8DAA8D;;IAE9D,wFAAwF;;CAEvC,CAAC;AAEpD,8BAA8B;AAC9B,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAC"}
|
package/dist/receivers.js
CHANGED
|
@@ -138,9 +138,10 @@ export const RECEIVERS = {
|
|
|
138
138
|
receiver: "auth:agent",
|
|
139
139
|
canonical: "agent:enroll",
|
|
140
140
|
// `wallet` is a PUBLIC receiving address the caller derived in its own process.
|
|
141
|
-
// Nothing here generates keys
|
|
142
|
-
//
|
|
143
|
-
|
|
141
|
+
// Nothing here generates keys. The address is stored on the TypeDB actor but NOT
|
|
142
|
+
// on the wallets row: an agent address needs a wallet:challenge proof, so the
|
|
143
|
+
// row is a shell until the agent registers by signature through wallet:create.
|
|
144
|
+
summary: "Become an actor — mint a uid and a scoped API key, and register an empty wallets row; addresses are registered afterwards by wallet:challenge proof",
|
|
144
145
|
request: () => z.object({ name: z.string().optional(), uid: z.string().optional(), kind: z.string().optional(), wallet: z.string().optional() }),
|
|
145
146
|
response: () => z.object({
|
|
146
147
|
uid: z.string(), name: z.string(), kind: z.string(),
|
|
@@ -4805,6 +4806,16 @@ export const RECEIVERS = {
|
|
|
4805
4806
|
solana: z.string().nullable().optional(),
|
|
4806
4807
|
btc: z.string().nullable().optional(),
|
|
4807
4808
|
}).optional(),
|
|
4809
|
+
// An AGENT's addresses are written only with proof of control: the token
|
|
4810
|
+
// wallet:challenge issued, and one signature per address over
|
|
4811
|
+
// addressProofMessage (@oneie/sdk/address-proof). Public bytes only.
|
|
4812
|
+
challenge: z.string().optional(),
|
|
4813
|
+
proofs: z.object({
|
|
4814
|
+
sui: z.object({ publicKey: z.string().optional(), signature: z.string() }).optional(),
|
|
4815
|
+
evm: z.object({ publicKey: z.string().optional(), signature: z.string() }).optional(),
|
|
4816
|
+
solana: z.object({ publicKey: z.string().optional(), signature: z.string() }).optional(),
|
|
4817
|
+
btc: z.object({ publicKey: z.string().optional(), signature: z.string() }).optional(),
|
|
4818
|
+
}).optional(),
|
|
4808
4819
|
}),
|
|
4809
4820
|
response: () => z.object({
|
|
4810
4821
|
ok: z.boolean().optional(),
|
|
@@ -4823,6 +4834,24 @@ export const RECEIVERS = {
|
|
|
4823
4834
|
effect: "ask", cost: "free", reversible: false, idempotent: true, settles: "none", auth: "member",
|
|
4824
4835
|
examples: [{ workspace: "acme", kind: "human", addresses: { sui: "0xabc", evm: "0xdef" } }],
|
|
4825
4836
|
}),
|
|
4837
|
+
"wallet:challenge": receiver({
|
|
4838
|
+
receiver: "wallet:challenge",
|
|
4839
|
+
summary: "Issue a fresh, single-use challenge an agent signs to prove it holds the keys behind the addresses it registers with wallet:create",
|
|
4840
|
+
request: () => z.object({
|
|
4841
|
+
workspace: z.string().optional(),
|
|
4842
|
+
actor: z.string().optional(),
|
|
4843
|
+
}),
|
|
4844
|
+
response: () => z.object({
|
|
4845
|
+
ok: z.boolean().optional(),
|
|
4846
|
+
challenge: z.string().optional(),
|
|
4847
|
+
workspace: z.string().optional(),
|
|
4848
|
+
actor: z.string().optional(),
|
|
4849
|
+
expiresAt: z.number().optional(),
|
|
4850
|
+
error: z.string().optional(),
|
|
4851
|
+
}),
|
|
4852
|
+
effect: "ask", cost: "free", reversible: true, idempotent: false, settles: "none", auth: "member",
|
|
4853
|
+
examples: [{ workspace: "acme", actor: "acme" }],
|
|
4854
|
+
}),
|
|
4826
4855
|
// ── wallet:rehearse — READ a TESTNET transaction back (handler: resolvers/wallet.ts) ──
|
|
4827
4856
|
// The rehearsal step of the /u/one funnel: a visitor sends play money on Sui
|
|
4828
4857
|
// testnet from their own derived address, and this reads the digest back so the
|