Events
The event each instruction emits, and how to find it in a transaction.
Every instruction emits one event with Anchor's emit_cpi!: the program calls itself with the event as instruction data, signed by its event authority PDA ["__event_authority"]. An indexer finds the event among the transaction's inner instructions, as data that starts with Anchor's event tag e445a52e51cb9a1d followed by the event's 8-byte discriminator, then the fields in Borsh. Events in program logs are not used, since logs can be cut short.
Enrolled
A person enrolled. Replayed with Revoked in chain order, these rebuild the person tree. Emitted by enroll. Discriminator 819c66d65ec4dc7f.
| Name | Type | Description |
|---|---|---|
n | [u8; 32] | The person nullifier N. |
index | u32 | The leaf’s index. |
leaf | [u8; 32] | The leaf. |
root | [u8; 32] | The tree’s root after the append. |
at | i64 | Unix seconds. |
Revoked
A person revoked; the leaf at index is now zero. Emitted by revoke. Discriminator 71d894637cb80041.
| Name | Type | Description |
|---|---|---|
index | u32 | The revoked leaf’s index. |
root | [u8; 32] | The tree’s root after the revoke. |
at | i64 | Unix seconds. |
ScopeCreated
A scope was opened. Emitted by create_scope. Discriminator abd04671093bd8e8.
| Name | Type | Description |
|---|---|---|
scope | Pubkey | The scope account. |
id | u64 | The scope ID. |
creator | Pubkey | The creator. |
Claimed
A claim landed. Emitted by claim. Discriminator d9c07b486c96f821.
| Name | Type | Description |
|---|---|---|
scope | Pubkey | The scope account. |
n | [u8; 32] | The scope nullifier. |
option | Option<u8> | The option voted for; empty for a drop. |
binding | [u8; 32] | The binding the proof committed to. |
at | i64 | Unix seconds. |
ScopeClosed
A scope was settled and closed. Emitted by close_scope. Discriminator 661d69f7d0fdddea.
| Name | Type | Description |
|---|---|---|
scope | Pubkey | The scope account. |
at | i64 | Unix seconds. |
ClaimsClosed
Claim receipts of a closed scope were closed. Emitted by close_claims. Discriminator dab9f62aa4b2596c.
| Name | Type | Description |
|---|---|---|
scope | Pubkey | The scope account. |
count | u32 | How many. |
Withdrawn
A relayed withdrawal from a private balance landed. Emitted by withdraw. Discriminator 1459dfc6c27cdb0d.
| Name | Type | Description |
|---|---|---|
relayer | Pubkey | The relayer. |
at | i64 | Unix seconds. |
Initialized
The program was initialized. Emitted by initialize. Discriminator d0d573627352c9d1.
| Name | Type | Description |
|---|---|---|
admin | Pubkey | The admin. |
FeesUpdated
The fee recipient or a relay fee changed. Emitted by update_fees. Discriminator 4122ea3bf8f26576.
| Name | Type | Description |
|---|---|---|
recipient | Pubkey | The fee recipient. |
sol | u64 | The SOL relay fee. |
usdc | u64 | The USDC relay fee. |
IssuerUpdated
An issuer was added, retired or reactivated. Emitted by set_issuer. Discriminator 84299600eaa93c9d.
| Name | Type | Description |
|---|---|---|
key | CurvePoint | The issuer key. |
active | bool | Whether it can enroll. |
OprfUpdated
The OPRF registry was written. Emitted by set_oprf. Discriminator 095b274335ef245c.
| Name | Type | Description |
|---|---|---|
version | u64 | The new version. |
digest | [u8; 32] | The registry digest. |