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