chains

package
v0.0.1-gowrapper-test Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL