BITE API
This section provides detailed technical documentation for BITE’s JSON-RPC API methods, transaction structure, and common use cases.JSON-RPC API Methods
BITE extends standard Ethereum JSON-RPC with several custom methods for threshold encryption operations.bite_getDecryptedTransactionData
Retrieves decrypted transaction data for a BITE transaction after consensus finality.
Parameters:
transactionHash: string– The hash of the BITE transaction
object– Containstoanddatafields with original decrypted values
bite_getCommitteesInfo
Fetches current committee information including BLS public keys and epoch details.
Parameters:
- None
array– Array of committee objects (1-2 elements)
Transaction Structure
BITE Encrypted Transaction Format
BITE transactions modify standard Ethereum transaction structure:Encryption Payload Structure
The encrypteddata field contains RLP-encoded array:
EPOCH_ID: Current committee epochENCRYPTED_AES_KEY: AES key encrypted with committee BLS public key(s)AES_ENCRYPTED_DATA: Original transaction data encrypted with AES
