package
0.0.0-20200107211526-8e17a2142328
Repository: https://github.com/genesiskernel/go-genesis.git
Documentation: pkg.go.dev
# Functions
Address gets int64 EGGAS address from the public key.
CalcChecksum is calculates checksum.
CheckSign is checking sign.
CutPub removes the first 04 byte.
Decrypt is decrypting.
DoubleHash returns double hash of passed bytes.
Encrypt is encrypting.
GenBytesKeys generates a random pair of ECDSA private and public binary keys.
GenHexKeys generates a random pair of ECDSA private and public hex keys.
GetHMAC returns HMAC hash.
GetHMACWithTimestamp allows add timestamp.
GetWalletIDByPublicKey converts public key to wallet id.
Hash returns hash of passed bytes.
No description provided by the author
HexToPub encodes hex string to []byte of pub key.
JSSignToBytes converts hex signature which has got from the browser to []byte.
KeyToAddress converts a public key to apla address XXXX-...-XXXX.
No description provided by the author
PrivateToPublic returns the public key for the specified private key.
PubToHex decodes []byte of pub key to hex string.
RandInt returns a random integer between min and max.
RandSeq is returning random string.
SharedEncrypt creates a shared key and encrypts text.
Sign in signing data with private key.
No description provided by the author
# Variables
ErrCheckingSignEmpty is Checking sign of empty error.
ErrDecrypting is Decrypting error.
ErrDecryptingEmpty is Decrypting empty value error.
ErrEncrypting is Encoding error.
ErrEncryptingEmpty is Encrypting empty value error.
ErrHashing is Hashing error.
ErrHashingEmpty is Hashing empty value error.
ErrIncorrectPrivKeyLength is Incorrect private key length error.
ErrIncorrectPubKeyLength is Incorrect public key length.
ErrIncorrectSign is Incorrect sign.
ErrSigningEmpty is Signing empty value error.
ErrUnknownProvider is Unknown provider error.
ErrUnsupportedCurveSize is Unsupported curve size error.