@zkproofport-app/sdk 0.5.0-beta.4 → 0.5.0-beta.5
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 +23 -15
- package/dist/constants.d.ts +1 -1
- package/dist/index.esm.js +9 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -92,19 +92,20 @@ const DEEP_LINK_HOSTS = {
|
|
|
92
92
|
* ```typescript
|
|
93
93
|
* const metadata = CIRCUIT_METADATA['coinbase_attestation'];
|
|
94
94
|
* console.log(metadata.name); // "Coinbase KYC"
|
|
95
|
-
* console.log(metadata.publicInputsCount); //
|
|
95
|
+
* console.log(metadata.publicInputsCount); // 193
|
|
96
96
|
* ```
|
|
97
97
|
*/
|
|
98
98
|
const CIRCUIT_METADATA = {
|
|
99
99
|
coinbase_attestation: {
|
|
100
100
|
name: 'Coinbase KYC',
|
|
101
|
-
description: 'Prove Coinbase identity verification',
|
|
102
|
-
//
|
|
103
|
-
//
|
|
104
|
-
//
|
|
105
|
-
//
|
|
106
|
-
|
|
107
|
-
|
|
101
|
+
description: 'Prove Coinbase identity verification, optionally authorizing one EIP-712 action',
|
|
102
|
+
// Coinbase KYC v2 (coinbase-attestation-v2/src/main.nr): GIWA's six
|
|
103
|
+
// `pub [u8; 32]` in its order, then `attested_at: pub u64` = 193 fields.
|
|
104
|
+
// signal_hash 0-31, domain_separator 32-63, action_hash 64-95,
|
|
105
|
+
// signer_list_merkle_root 96-127, scope 128-159, nullifier 160-191,
|
|
106
|
+
// attested_at 192. v1's 128 fields are refused on every verify path.
|
|
107
|
+
publicInputsCount: 193,
|
|
108
|
+
publicInputNames: ['signal_hash', 'domain_separator', 'action_hash', 'signer_list_merkle_root', 'scope', 'nullifier', 'attested_at'],
|
|
108
109
|
},
|
|
109
110
|
coinbase_country_attestation: {
|
|
110
111
|
name: 'Coinbase Country',
|