| Crates.io | adhp |
| lib.rs | adhp |
| version | 0.1.0 |
| created_at | 2025-05-12 11:03:17.840161+00 |
| updated_at | 2025-05-12 11:03:17.840161+00 |
| description | Get the 8 byte account discriminator for a Solana program using Anchor. |
| homepage | |
| repository | https://github.com/nicholas-ewasiuk/adhp |
| max_upload_size | |
| id | 1670427 |
| size | 12,032 |
Anchor discriminator hash producer.
Gets the first 8 bytes of the SHA256 hash of account:<account_name> and encodes them in base58.
Useful for filtering accounts when calling getProgramAccounts on program that uses Anchor.
"filters":[{"memcmp":{"offset":0,"bytes":<discriminator>}}],