Libraries
Core
Common Solana Cryptography & Serialization Utilities.
GitHub Repository
Dependencies
Features
- Transaction (de)serialization
- Accounts Types:
- Token, Mint, Token2022 and extensions
- Address Lookup Tables
- Sysvar
- Clock
- EpochRewards
- Common collection of main-net addresses
- Ed25519 public and private keys
- Program derived addresses
- Borsh (de)serialization
- Encoding:
Private Key Parsing
Usage
JSON Configuration
If the base58 encoded public key is configured via pubKey
it will be used to further validate the public key derived
from the private key.
Solana CLI Key Pair JSON Array
By default, if only an array is configured, the assumption is that it is a key pair generated by the Solana CLI.
JSON Array
Key Pair
Encoded 64 byte private/public key pair. Derived public key will be validated.
- base64KeyPair
- base58KeyPair
Private Key Only
Encoded 32 byte private key.
- base64PrivateKey
- base58PrivateKey
Transaction Deserialization
The TransactionSkeleton interface provides a lightweight view over transaction data. Allowing for partial introspection or complete reconstruction of a Transaction.