iscclient

package
v1.0.4-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HrpForClient = iotago.NetworkPrefix("")
)

Functions

func MakeSubSeed

func MakeSubSeed(seed []byte, index uint32) []byte

func SetSandboxWrappers

func SetSandboxWrappers(chainID string) error

Types

type Keypair

type Keypair struct {
	// contains filtered or unexported fields
}

func KeyPairFromSeed

func KeyPairFromSeed(seed []byte) *Keypair

func KeyPairFromSubSeed

func KeyPairFromSubSeed(seed []byte, index uint32) *Keypair

func (*Keypair) Address

func (kp *Keypair) Address() wasmtypes.ScAddress

func (*Keypair) GetPrivateKey

func (kp *Keypair) GetPrivateKey() ed25519.PrivateKey

func (*Keypair) GetPublicKey

func (kp *Keypair) GetPublicKey() ed25519.PublicKey

func (*Keypair) Sign

func (kp *Keypair) Sign(data []byte) []byte

type OffLedgerRequest

type OffLedgerRequest struct {
	ChainID    wasmtypes.ScChainID
	Contract   wasmtypes.ScHname
	EntryPoint wasmtypes.ScHname
	Params     []byte
	Signature  OffLedgerSignature
	Nonce      uint64
	Allowance  *wasmlib.ScAssets
	GasBudget  uint64
}

func NewOffLedgerRequest

func NewOffLedgerRequest(
	chainID wasmtypes.ScChainID,
	hContract, hFunction wasmtypes.ScHname,
	params []byte,
	allowance *wasmlib.ScAssets,
	nonce uint64,
) (*OffLedgerRequest, error)

func (*OffLedgerRequest) Bytes

func (req *OffLedgerRequest) Bytes() []byte

func (*OffLedgerRequest) Essence

func (req *OffLedgerRequest) Essence() []byte

func (*OffLedgerRequest) ID

func (*OffLedgerRequest) Sign

func (req *OffLedgerRequest) Sign(keyPair *Keypair)

type OffLedgerSignature

type OffLedgerSignature struct {
	PublicKey ed25519.PublicKey
	Signature []byte
}

Jump to

Keyboard shortcuts

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