ledger_cosmos_go

package module
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: Apache-2.0 Imports: 4 Imported by: 5

README

ledger-cosmos-go

CircleCI Build status

This project is work in progress. Some aspects are subject to change.

Get source

Apart from cloning, be sure you install dep dependency management tool https://github.com/golang/dep

Documentation

Index

Constants

View Source
const (
	RequiredVersionMajor = 1
	RequiredVersionMinor = 0
	RequiredVersionPatch = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LedgerCosmos added in v0.9.2

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

User app

func FindLedgerCosmosUserApp added in v0.9.2

func FindLedgerCosmosUserApp() (*LedgerCosmos, error)

func (*LedgerCosmos) GetPublicKeySECP256K1 added in v0.9.2

func (ledger *LedgerCosmos) GetPublicKeySECP256K1(bip32_path []uint32) ([]byte, error)

func (*LedgerCosmos) GetVersion added in v0.9.2

func (ledger *LedgerCosmos) GetVersion() (*VersionInfo, error)

func (*LedgerCosmos) Hash added in v0.9.2

func (ledger *LedgerCosmos) Hash(transaction []byte) ([]byte, error)

func (*LedgerCosmos) SignSECP256K1 added in v0.9.2

func (ledger *LedgerCosmos) SignSECP256K1(bip32_path []uint32, transaction []byte) ([]byte, error)

func (*LedgerCosmos) TestGetPublicKeySECP256K1 added in v0.9.2

func (ledger *LedgerCosmos) TestGetPublicKeySECP256K1() ([]byte, error)

func (*LedgerCosmos) TestSignSECP256K1 added in v0.9.2

func (ledger *LedgerCosmos) TestSignSECP256K1(transaction []byte) ([]byte, error)

type LedgerCosmosValidator added in v0.9.2

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

Validator app

func FindLedgerCosmosValidatorApp added in v0.9.2

func FindLedgerCosmosValidatorApp() (*LedgerCosmosValidator, error)

func (*LedgerCosmosValidator) GetPublicKeyED25519 added in v0.9.2

func (ledger *LedgerCosmosValidator) GetPublicKeyED25519(bip32_path []uint32) ([]byte, error)

func (*LedgerCosmosValidator) GetVersion added in v0.9.2

func (ledger *LedgerCosmosValidator) GetVersion() (*VersionInfo, error)

func (*LedgerCosmosValidator) SignED25519 added in v0.9.2

func (ledger *LedgerCosmosValidator) SignED25519(bip32_path []uint32, message []byte) ([]byte, error)

type VersionInfo

type VersionInfo struct {
	AppMode uint8
	Major   uint8
	Minor   uint8
	Patch   uint8
}

Jump to

Keyboard shortcuts

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