sava-core module is the foundation of the Sava Solana Java SDK, providing essential functionality for interacting with the Solana blockchain.
What the Core Module Provides
The core module delivers low-level blockchain primitives and utilities:- Account Management: Public keys, signers, and program derived addresses (PDAs)
- Transaction Building: Create, sign, and serialize Solana transactions
- Instruction Creation: Build program instructions with account metadata
- Encoding Utilities: Base58, byte manipulation, and compact encoding
- Cryptography: Ed25519 signatures, SHA-256 hashing, and key generation
- Borsh Serialization: Serialize and deserialize data using the Borsh format
- Token Support: SPL Token and Token-2022 account structures
- Address Lookup Tables: Optimize transaction size with lookup tables
Module Dependencies
Declared inmodule-info.java:
Exported Packages
The module exports the following packages:software.sava.core.accounts- Account and key managementsoftware.sava.core.accounts.lookup- Address lookup table supportsoftware.sava.core.accounts.meta- Account metadata for instructionssoftware.sava.core.accounts.sysvar- System variable accountssoftware.sava.core.accounts.token- SPL Token account structuressoftware.sava.core.accounts.token.extensions- Token-2022 extension typessoftware.sava.core.accounts.vanity- Vanity key generationsoftware.sava.core.borsh- Borsh serialization utilitiessoftware.sava.core.crypto- Cryptographic functionssoftware.sava.core.crypto.ed25519- Ed25519 utilitiessoftware.sava.core.encoding- Encoding and byte utilitiessoftware.sava.core.programs- Program discriminatorssoftware.sava.core.rpc- RPC filter utilitiessoftware.sava.core.serial- Serialization interfacessoftware.sava.core.tx- Transaction and instruction typessoftware.sava.core.util- General utilities
Core API Pages
Accounts API
SolanaAccounts interface and account management
PublicKey API
PublicKey interface and implementations
Signer API
Key pair generation and signing operations
PDA API
Program Derived Address creation
Transactions API
Transaction building and serialization
Instructions API
Instruction creation and serialization
Encoding API
Base58, byte utilities, and compact encoding
Borsh API
Borsh serialization and deserialization
Cryptography API
Hashing and signature verification
Tokens API
SPL Token and Token-2022 support