Documentation ¶
Overview ¶
toll
Index ¶
- Constants
- func CheckAddress(Saddress string) bool
- func CheckPrivateKey(SprivateKey string) bool
- func CheckPublicKey(publicKey string) bool
- func Create() (publicKey string, privateKey string, address string, err error)
- func DecodePrivateKey(privateKey string) (decodePrivateKey *[DePrivateKeySize]byte, err error)
- func DecodePublicKey(publicKey string) (decodePublicKey *[PublicKeySize]byte, err error)
- func GenerateKey(ranbuf [32]byte) (publicKey *[PublicKeySize]byte, privateKey *[PrivateKeySize]byte, err error)
- func GetEncAddress(publicKey string) (address string, err error)
- func GetEncPublicKey(privateKey string) (publicKey string, err error)
Constants ¶
View Source
const ( PublicKeySize = 32 PrivateKeySize = 64 SignatureSize = 64 )
View Source
const ( DePublicKeySize = 32 DePrivateKeySize = 32 DeAddressSize = 20 )
Variables ¶
This section is empty.
Functions ¶
func DecodePrivateKey ¶
func DecodePrivateKey(privateKey string) (decodePrivateKey *[DePrivateKeySize]byte, err error)
Decode private Key
func DecodePublicKey ¶
func DecodePublicKey(publicKey string) (decodePublicKey *[PublicKeySize]byte, err error)
Decode public Key
func GenerateKey ¶
func GenerateKey(ranbuf [32]byte) (publicKey *[PublicKeySize]byte, privateKey *[PrivateKeySize]byte, err error)
Generate Key
func GetEncAddress ¶
The public key gets the address
func GetEncPublicKey ¶
The private key gets the public key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.