Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrivateKey ¶
type PrivateKey struct {
Data [32]byte
}
func NewPrivateKey ¶
func NewPrivateKey(seed []byte) *PrivateKey
func NewPrivateKeyFromBase58 ¶
func NewPrivateKeyFromBase58(strPriv string) (*PrivateKey, error)
func NewPrivateKeyFromHex ¶
func NewPrivateKeyFromHex(strPriv string) (*PrivateKey, error)
func (*PrivateKey) GetPublicKey ¶
func (priv *PrivateKey) GetPublicKey() *PublicKey
func (*PrivateKey) String ¶
func (priv *PrivateKey) String() string
type PublicKey ¶
type PublicKey struct {
Data [33]byte
}
func GetPublicKey ¶
func GetPublicKey(seckey *PrivateKey) (*PublicKey, error)
func NewPublicKeyFromBase58 ¶ added in v0.1.1
type Signature ¶
type Signature struct {
Data [65]byte
}
func NewSignature ¶
func NewSignatureFromBase58 ¶
Click to show internal directories.
Click to hide internal directories.