package
2.2.0+incompatible
Repository: https://github.com/dispatchlabs/disgo.git
Documentation: pkg.go.dev
# README

crypto
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
DecryptKey decrypts a key from a json blob, returning the private key itself.
No description provided by the author
Encode encodes b as a hex string with 0x prefix.
No description provided by the author
EncryptKey encrypts a key using the specified scrypt parameters into a json blob that can be decrypted later on.
FromECDSA exports a private key into a binary dump.
No description provided by the author
No description provided by the author
GenerateKeyPair.
- GenerateKeyPair.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HexToECDSA parses a secp256k1 private key.
No description provided by the author
NewHash.
No description provided by the author
NewSignature.
No description provided by the author
ToAddress.
No description provided by the author
ToPublicKey.
ValidateSignatureValues verifies whether the signature values are valid with the given chain rules.
VerifyHashAndSignature.
# Constants
No description provided by the author
No description provided by the author
LightScryptN is the N parameter of Scrypt encryption algorithm, using 4MB memory and taking approximately 100ms CPU time on a modern processor.
LightScryptP is the P parameter of Scrypt encryption algorithm, using 4MB memory and taking approximately 100ms CPU time on a modern processor.
No description provided by the author
StandardScryptN is the N parameter of Scrypt encryption algorithm, using 256MB memory and taking approximately 1s CPU time on a modern processor.
StandardScryptP is the P parameter of Scrypt encryption algorithm, using 256MB memory and taking approximately 1s CPU time on a modern processor.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Version 4 "random" for unique id not derived from key data to simplify lookups we also store the address we only store privkey as pubkey/address can be derived from it privkey in this struct is always in plaintext.