Documentation
¶
Index ¶
- type HederaChain
- func (h *HederaChain) CompileTransaction(input *chain_abstraction.TransactionInput, signatures [][]byte, ...) ([]byte, error)
- func (h *HederaChain) CreateAndSignTransaction(input interface{}, privateKey []byte) ([]byte, error)
- func (h *HederaChain) CreateWalletWithPrivateKey(privateKey string) (*chain_abstraction.Wallet, error)
- func (h *HederaChain) GetPreimageHash(input *chain_abstraction.TransactionInput) ([]byte, []byte, error)
- func (h *HederaChain) GetPublicKeyFromPrivateKey(privateKey []byte) ([]byte, error)
- func (h *HederaChain) PrepareTransaction(input interface{}) (*chain_abstraction.TransactionInput, error)
- func (h *HederaChain) Sign(preimage []byte, privateKey []byte) ([]byte, error)
- func (h *HederaChain) ValidateTransactionInput(input interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HederaChain ¶
type HederaChain struct {
*chain_abstraction.BaseChain
}
HederaChain implements the Chain interface for Hedera
func NewHederaChain ¶
func NewHederaChain() *HederaChain
NewHederaChain creates a new Hedera chain instance
func (*HederaChain) CompileTransaction ¶
func (h *HederaChain) CompileTransaction( input *chain_abstraction.TransactionInput, signatures [][]byte, publicKeys [][]byte, ) ([]byte, error)
--- CompileTransaction implementation ---
func (*HederaChain) CreateAndSignTransaction ¶
func (h *HederaChain) CreateAndSignTransaction(input interface{}, privateKey []byte) ([]byte, error)
CreateAndSignTransaction creates and signs a Hedera transaction
func (*HederaChain) CreateWalletWithPrivateKey ¶
func (h *HederaChain) CreateWalletWithPrivateKey(privateKey string) (*chain_abstraction.Wallet, error)
CreateWalletWithPrivateKey creates a Hedera wallet from private key
func (*HederaChain) GetPreimageHash ¶
func (h *HederaChain) GetPreimageHash(input *chain_abstraction.TransactionInput) ([]byte, []byte, error)
GetPreimageHash gets the preimage hash for Hedera transaction
func (*HederaChain) GetPublicKeyFromPrivateKey ¶
func (h *HederaChain) GetPublicKeyFromPrivateKey(privateKey []byte) ([]byte, error)
GetPublicKeyFromPrivateKey uses the BaseChain implementation with additional Ed25519 validation
func (*HederaChain) PrepareTransaction ¶
func (h *HederaChain) PrepareTransaction(input interface{}) (*chain_abstraction.TransactionInput, error)
PrepareTransaction prepares a Hedera transaction for external signing
func (*HederaChain) Sign ¶
func (h *HederaChain) Sign(preimage []byte, privateKey []byte) ([]byte, error)
Sign signs a preimage with the given private key
func (*HederaChain) ValidateTransactionInput ¶
func (h *HederaChain) ValidateTransactionInput(input interface{}) error
ValidateTransactionInput validates Hedera transaction input
Click to show internal directories.
Click to hide internal directories.