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: 10 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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