Documentation ¶
Index ¶
Constants ¶
View Source
const ( DigestSize = 32 PublicKeySize = 32 SecretKeySize = 32 SignatureSize = 64 )
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyPair ¶
Types ¶
type Digest ¶
type Digest [DigestSize]byte
func NewDigestFromBase58 ¶
func NewDigestFromBytes ¶ added in v0.2.0
func SecureHash ¶
func (Digest) MarshalBinary ¶
func (Digest) MarshalJSON ¶
func (*Digest) UnmarshalBinary ¶
func (*Digest) UnmarshalJSON ¶
type PublicKey ¶
type PublicKey [PublicKeySize]byte
func GeneratePublicKey ¶
func NewPublicKeyFromBase58 ¶
func NewPublicKeyFromBytes ¶ added in v0.2.0
func (PublicKey) MarshalBinary ¶
func (PublicKey) MarshalJSON ¶
func (*PublicKey) UnmarshalBinary ¶
func (*PublicKey) UnmarshalJSON ¶
type SecretKey ¶
type SecretKey [SecretKeySize]byte
func GenerateSecretKey ¶
func NewSecretKeyFromBase58 ¶
func (SecretKey) MarshalBinary ¶
func (SecretKey) MarshalJSON ¶
func (*SecretKey) UnmarshalBinary ¶
func (*SecretKey) UnmarshalJSON ¶
type Signature ¶
type Signature [SignatureSize]byte
func NewSignatureFromBase58 ¶
func NewSignatureFromBytes ¶ added in v0.2.0
func (Signature) MarshalBinary ¶
func (Signature) MarshalJSON ¶
func (*Signature) UnmarshalBinary ¶
func (*Signature) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.