122 lines
2.9 KiB
JSON
122 lines
2.9 KiB
JSON
{
|
|
"file": "docs/SPL_ELGAMAL_REGISTRY_MATRIX.json",
|
|
"version": "0.1.0-pre.008",
|
|
"programId": "regVYJW7tcT8zipN5YiBvHsvR5jXW1uLFxaHSbugABg",
|
|
"interface": {
|
|
"crate": "spl-elgamal-registry-interface",
|
|
"resolvedVersion": "0.2.1",
|
|
"auditedCommitPrefix": "e18f9c6"
|
|
},
|
|
"technicalBoundaries": {
|
|
"token_2022ProgramId": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb",
|
|
"zkElgamalProofProgramId": "ZkE1Gama1Proof11111111111111111111111111111",
|
|
"registryDecodesProofInstructions": false,
|
|
"token_2022DecoderOwnsRegistryInstructions": false
|
|
},
|
|
"pda": {
|
|
"seedUtf8": "elgamal-registry",
|
|
"ownerAddressIsSeed": true,
|
|
"programIdIsDerivationProgram": true
|
|
},
|
|
"instructions": [
|
|
{
|
|
"name": "create_registry",
|
|
"tag": 0,
|
|
"wire": {
|
|
"exactLengthBytes": 2,
|
|
"fields": [
|
|
{
|
|
"name": "tag",
|
|
"type": "u8",
|
|
"value": 0
|
|
},
|
|
{
|
|
"name": "proofInstructionOffset",
|
|
"type": "i8"
|
|
}
|
|
]
|
|
},
|
|
"accounts": [
|
|
{
|
|
"position": 0,
|
|
"role": "registry_account",
|
|
"writable": true,
|
|
"signer": false
|
|
},
|
|
{
|
|
"position": 1,
|
|
"role": "wallet_owner",
|
|
"writable": false,
|
|
"signer": true
|
|
},
|
|
{
|
|
"position": 2,
|
|
"role": "system_program",
|
|
"writable": false,
|
|
"signer": false
|
|
},
|
|
{
|
|
"position": 3,
|
|
"role": "instructions_sysvar_or_proof_context",
|
|
"writable": false,
|
|
"signer": false
|
|
}
|
|
],
|
|
"builder": "create_registry",
|
|
"status": "current"
|
|
},
|
|
{
|
|
"name": "update_registry",
|
|
"tag": 1,
|
|
"wire": {
|
|
"exactLengthBytes": 2,
|
|
"fields": [
|
|
{
|
|
"name": "tag",
|
|
"type": "u8",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "proofInstructionOffset",
|
|
"type": "i8"
|
|
}
|
|
]
|
|
},
|
|
"accounts": [
|
|
{
|
|
"position": 0,
|
|
"role": "registry_account",
|
|
"writable": true,
|
|
"signer": false
|
|
},
|
|
{
|
|
"position": 1,
|
|
"role": "instructions_sysvar_or_proof_context",
|
|
"writable": false,
|
|
"signer": false
|
|
},
|
|
{
|
|
"position": 2,
|
|
"role": "registry_owner",
|
|
"writable": false,
|
|
"signer": true
|
|
}
|
|
],
|
|
"builder": "update_registry",
|
|
"status": "current"
|
|
}
|
|
],
|
|
"proofLocationSemantics": {
|
|
"offsetZero": "context_state_account",
|
|
"offsetNonZero": "relative_zk_proof_instruction",
|
|
"publishedInlineBuilderOffset": 1
|
|
},
|
|
"decoder": {
|
|
"component": "kb-lib.decoder.spl.elgamal_registry",
|
|
"coverageEqualityRequired": true,
|
|
"unknownTagPolicy": "failed",
|
|
"trailingBytesPolicy": "failed",
|
|
"failedTransactionCommitted": false
|
|
}
|
|
}
|