ledger

package
v0.0.0-...-fe184aa Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheBlock

func CacheBlock(path []uint32, block *rpc.Block) (err error)

CacheBlock caches the frontier block in memory. The sign block payload uses this cached data to determine the changes in account state.

func GetAddress

func GetAddress(path []uint32) (pubkey []byte, address string, err error)

GetAddress returns the public key and the encoded address for the given BIP32 path.

func SignBlock

func SignBlock(path []uint32, block *rpc.Block) (hash rpc.BlockHash, signature []byte, err error)

SignBlock returns the signature for the provided block data. For non-null parent blocks the cache block payload needs to be called before this payload.

Types

This section is empty.

Jump to

Keyboard shortcuts

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