Documentation ¶
Index ¶
Constants ¶
View Source
const ID = 1
View Source
const Name = "secp256k1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivKeySecp256k1 ¶
type PrivKeySecp256k1 [32]byte
PrivKey
func (PrivKeySecp256k1) Bytes ¶
func (privKey PrivKeySecp256k1) Bytes() []byte
func (PrivKeySecp256k1) PubKey ¶
func (privKey PrivKeySecp256k1) PubKey() crypto.PubKey
func (PrivKeySecp256k1) String ¶
func (privKey PrivKeySecp256k1) String() string
type PubKeySecp256k1 ¶
type PubKeySecp256k1 [33]byte
Compressed pubkey (just the x-cord), prefixed with 0x02 or 0x03, depending on the y-cord.
func (PubKeySecp256k1) Bytes ¶
func (pubKey PubKeySecp256k1) Bytes() []byte
func (PubKeySecp256k1) KeyString ¶
func (pubKey PubKeySecp256k1) KeyString() string
Must return the full bytes in hex. Used for map keying, etc.
func (PubKeySecp256k1) String ¶
func (pubKey PubKeySecp256k1) String() string
func (PubKeySecp256k1) VerifyBytes ¶
func (pubKey PubKeySecp256k1) VerifyBytes(msg []byte, sig crypto.Signature) bool
type SignatureS ¶
type SignatureSecp256k1 ¶
type SignatureSecp256k1 []byte
Signature
func (SignatureSecp256k1) Bytes ¶
func (sig SignatureSecp256k1) Bytes() []byte
func (SignatureSecp256k1) Equals ¶
func (sig SignatureSecp256k1) Equals(other crypto.Signature) bool
func (SignatureSecp256k1) IsZero ¶
func (sig SignatureSecp256k1) IsZero() bool
func (SignatureSecp256k1) String ¶
func (sig SignatureSecp256k1) String() string
Click to show internal directories.
Click to hide internal directories.