chains

package
v0.0.1-gowrapper-dev Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EOSChain

type EOSChain struct {
	*chain_abstraction.BaseChain
}

EOSChain implements the Chain interface for EOS

func NewEOSChain

func NewEOSChain() *EOSChain

NewEOSChain creates a new EOS chain instance

func (*EOSChain) CompileTransaction

func (e *EOSChain) CompileTransaction(
	input *chain_abstraction.TransactionInput,
	signatures [][]byte,
	publicKeys [][]byte,
) ([]byte, error)

CompileTransaction compiles an EOS transaction with signatures

func (*EOSChain) CreateAndSignTransaction

func (e *EOSChain) CreateAndSignTransaction(input interface{}, privateKey []byte) ([]byte, error)

CreateAndSignTransaction creates and signs an EOS transaction

func (*EOSChain) GetPreimageHash

func (e *EOSChain) GetPreimageHash(input *chain_abstraction.TransactionInput) ([]byte, []byte, error)

GetPreimageHash gets the preimage hash for EOS transaction

func (*EOSChain) PrepareTransaction

func (e *EOSChain) PrepareTransaction(input interface{}) (*chain_abstraction.TransactionInput, error)

PrepareTransaction prepares an EOS transaction for external signing

func (*EOSChain) Sign

func (e *EOSChain) Sign(preimage []byte, privateKey []byte) ([]byte, error)

Sign signs a preimage with a private key

func (*EOSChain) ValidateTransactionInput

func (e *EOSChain) ValidateTransactionInput(input interface{}) error

ValidateTransactionInput validates EOS transaction input

Jump to

Keyboard shortcuts

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