Documentation ¶
Index ¶
- Variables
- func BytesToFloat32(b []byte) (float32, error)
- func CardIDFromPubKey(pubKey *ecdsa.PublicKey) string
- func ECCPrivKeyToHex(privKey *ecdsa.PrivateKey) string
- func ECCPubKeyToHexString(pubKey *ecdsa.PublicKey) string
- func Float32ToBytes(f float32) ([]byte, error)
- func ParseECCPrivKey(privKey []byte) (*ecdsa.PrivateKey, error)
- func ParseECCPubKey(rawPubKey []byte) (pubKey *ecdsa.PublicKey, err error)
- func PinPrompt() (string, error)
- func RandomKey(length int) []byte
- func Uint16ToBytes(i uint16) []byte
- type ECDSASignature
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidECCPubKeyFormat = errors.New("ECC pubkey format could not be detected")
Functions ¶
func BytesToFloat32 ¶
func CardIDFromPubKey ¶
func ECCPrivKeyToHex ¶
func ECCPrivKeyToHex(privKey *ecdsa.PrivateKey) string
func ECCPubKeyToHexString ¶
func Float32ToBytes ¶
func ParseECCPrivKey ¶
func ParseECCPrivKey(privKey []byte) (*ecdsa.PrivateKey, error)
func Uint16ToBytes ¶
Types ¶
type ECDSASignature ¶
func ParseECDSASignature ¶
func ParseECDSASignature(rawSig []byte) (*ECDSASignature, error)
Click to show internal directories.
Click to hide internal directories.