Versions in this module Expand all Collapse all v1 v1.0.3 Jul 2, 2024 v1.0.2 Jun 16, 2024 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)