Documentation ¶
Index ¶
- Constants
- func GenPublicKey(seed, pubSeed []byte, adrs *Address) []byte
- func PkFromSig(sig, msg, pubSeed []byte, adrs *Address) []byte
- func Sign(msg, seed, pubSeed []byte, adrs *Address) []byte
- func Verify(pk, sig, msg, pubSeed []byte, adrs *Address) bool
- type Address
- func (a *Address) Layer() uint32
- func (a *Address) OTS() uint32
- func (a *Address) SetLayer(l uint32)
- func (a *Address) SetOTS(o uint32)
- func (a *Address) SetTree(t uint64)
- func (a *Address) SetType(t uint32)
- func (a *Address) ToBytes() []byte
- func (a *Address) Tree() uint64
- func (a *Address) Type() uint32
Constants ¶
View Source
const MsgLen = n
View Source
const PubKeyLen = l * n
View Source
const SigLen = l * n
Variables ¶
This section is empty.
Functions ¶
func GenPublicKey ¶
Computes the public key that corresponds to the expanded seed.
Types ¶
Click to show internal directories.
Click to hide internal directories.