Documentation ¶
Index ¶
- type APDU
- type NanoS
- func (n *NanoS) Exchange(cmd byte, p1, p2, lc byte, data []byte) (resp []byte, err error)
- func (n *NanoS) GetAddress(account uint32, index uint32) (pubkey []byte, err error)
- func (n *NanoS) GetAddressWithAuthToken(account uint32, index uint32, token string) (string, string, error)
- func (n *NanoS) GetAddressWithoutConfirmation(account uint32, index uint32) (pubkey []byte, err error)
- func (n *NanoS) GetConfiguration() error
- func (n *NanoS) GetVersion() error
- func (n *NanoS) ProvideESDTInfo(info []byte) error
- func (n *NanoS) SetAddress(account uint32, index uint32) error
- func (n *NanoS) SignMsg(msg string) (sig []byte, err error)
- func (n *NanoS) SignTx(txData []byte) (sig []byte, err error)
- func (n *NanoS) SignTxHash(txData []byte) (sig []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NanoS ¶
type NanoS struct { ContractData uint8 Account uint32 AddressIndex uint32 AppVersion string LedgerVersion string // contains filtered or unexported fields }
func (*NanoS) GetAddress ¶
GetAddress retrieves from device the address based on account and address index
func (*NanoS) GetAddressWithAuthToken ¶
func (n *NanoS) GetAddressWithAuthToken(account uint32, index uint32, token string) (string, string, error)
GetAddressWithAuthToken retrieves the address from the device, alongside with the signature for auth token
func (*NanoS) GetAddressWithoutConfirmation ¶
func (n *NanoS) GetAddressWithoutConfirmation(account uint32, index uint32) (pubkey []byte, err error)
GetAddressWithoutConfirmation retrieves from device the address based on account and address index (without confirmation on device)
func (*NanoS) GetConfiguration ¶
GetConfiguration retrieves from device its configuration
func (*NanoS) GetVersion ¶
GetVersion retrieves from device the app version
func (*NanoS) ProvideESDTInfo ¶
func (*NanoS) SetAddress ¶
SetAddress sets the account and address index
Click to show internal directories.
Click to hide internal directories.