wallets

package
v0.0.0-...-7782990 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SDKED25519SignatureToIOTAGo

func SDKED25519SignatureToIOTAGo(responseSignature *types.Ed25519Signature) (iotago.Signature, error)

Types

type ExternalAddressSigner

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

func (*ExternalAddressSigner) Sign

func (r *ExternalAddressSigner) Sign(addr iotago.Address, msg []byte) (signature iotago.Signature, err error)

type ExternalWallet

type ExternalWallet struct {
	Bech32Hrp string
	CoinType  types.CoinType
	// contains filtered or unexported fields
}

func NewExternalWallet

func NewExternalWallet(secretManager *walletsdk.SecretManager, addressIndex uint32, bech32Hrp string, coinType types.CoinType) *ExternalWallet

func (*ExternalWallet) Address

func (l *ExternalWallet) Address() *iotago.Ed25519Address

func (*ExternalWallet) AddressIndex

func (l *ExternalWallet) AddressIndex() uint32

func (*ExternalWallet) AddressKeysForEd25519Address

func (l *ExternalWallet) AddressKeysForEd25519Address(addr *iotago.Ed25519Address) iotago.AddressKeys

func (*ExternalWallet) AsAddressSigner

func (l *ExternalWallet) AsAddressSigner() iotago.AddressSigner

func (*ExternalWallet) GetPublicKey

func (l *ExternalWallet) GetPublicKey() *cryptolib.PublicKey

func (*ExternalWallet) IsNil

func (l *ExternalWallet) IsNil() bool

func (*ExternalWallet) Sign

func (l *ExternalWallet) Sign(addr iotago.Address, payload []byte) (signature iotago.Signature, err error)

func (*ExternalWallet) SignBytes

func (l *ExternalWallet) SignBytes(payload []byte) []byte

type Wallet

type Wallet interface {
	cryptolib.VariantKeyPair

	AddressIndex() uint32
}

Jump to

Keyboard shortcuts

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