baseadapter

package
v0.0.0-...-9232201 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitcoinBaseAdapter

type BitcoinBaseAdapter struct {
	BlockchainAdapter
}

func (*BitcoinBaseAdapter) CreateSignedTransaction

func (b *BitcoinBaseAdapter) CreateSignedTransaction(p string, backendLogger log.Logger) (string, error)

func (*BitcoinBaseAdapter) DeriveAddress

func (b *BitcoinBaseAdapter) DeriveAddress(logger log.Logger) (string, error)

func (*BitcoinBaseAdapter) DerivePrivateKey

func (b *BitcoinBaseAdapter) DerivePrivateKey(logger log.Logger) (string, error)

func (*BitcoinBaseAdapter) DerivePublicKey

func (b *BitcoinBaseAdapter) DerivePublicKey(logger log.Logger) (string, error)

func (*BitcoinBaseAdapter) GetBlockchainNetwork

func (b *BitcoinBaseAdapter) GetBlockchainNetwork() string

type BlockchainAdapter

type BlockchainAdapter struct {
	Seed           []byte
	DerivationPath string
	PrivateKey     string
	IsDev          bool
	IBlockchainAdapter
}

BlockchainAdapter contains common fields for all Blockchain Adapter variants

type IBlockchainAdapter

type IBlockchainAdapter interface {
	DerivePrivateKey(log.Logger) (string, error)
	DerivePublicKey(log.Logger) (string, error)
	DeriveAddress(log.Logger) (string, error)
	GetBlockchainNetwork() string
	CreateSignedTransaction(string, log.Logger) (string, error)
	CreateSignature(string, log.Logger) (string, error)
}

IBlockchainAdapter Blockchain Adapter Interface contains common methods for all Blockchain Adapter variants

Jump to

Keyboard shortcuts

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