Versions in this module Expand all Collapse all v0 v0.1.1 Mar 25, 2022 v0.1.0 Mar 25, 2022 Changes in this version + var DEBUG bool + func GetAddress() string + func ProcessAddressCommand() + func SignTx(tx []byte) ([]byte, error) + type APDU struct + CLA byte + INS byte + P1 byte + P2 byte + Payload []byte + type ErrCode uint16 + func (c ErrCode) Error() string + type NanoS struct + func OpenNanoS() (*NanoS, error) + func (n *NanoS) Exchange(cmd byte, p1, p2 byte, data []byte) (resp []byte, err error) + func (n *NanoS) GetAddress() (addr string, err error) + func (n *NanoS) GetVersion() (version string, err error) + func (n *NanoS) SignTxn(txn []byte) (sig [signatureSize]byte, err error)