package
0.0.0-20210301081109-a173fca9e8fd
Repository: https://github.com/drep-project/drep-chain.git
Documentation: pkg.go.dev

# Packages

Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
No description provided by the author
Package secp256k1 implements support for the elliptic curves needed for decred.
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.

# Functions

No description provided by the author
BigToAddress returns Address with byte values of b.
BigToHash sets byte representation of b to hash.
No description provided by the author
BytesToAddress returns Address with value b.
BytesToHash sets b to hash.
CompressPubkey encodes a public key to the 33-byte compressed format.
CreateAddress creates an ethereum address given the bytes and the nonce.
DecompressPubkey parses a public key in the 33-byte compressed format.
No description provided by the author
Ecrecover returns the uncompressed public key that created the given signature.
No description provided by the author
Generate an elliptic curve public / private keypair.
No description provided by the author
HexToAddress returns Address with byte values of s.
HexToHash sets byte representation of s to hash.
IsHexAddress verifies whether a string can represent a valid hex-encoded Ethereum address or not.
Keccak256Hash calculates and returns the Keccak256 hash of the input data, converting it to an internal Hash data structure.
LoadECDSA loads a secp256k1 private key from the given file.
No description provided by the author
No description provided by the author
SaveECDSA saves a secp256k1 private key to the given file with restrictive permissions.
Sign calculates an ECDSA signature.
SigToPub returns the public key that created the given signature.
ToECDSA creates a private key with the given D value.
ValidateSignatureValues verifies whether the signature values are valid with the given chain rules.
VerifySignature checks that the given public key created signature over hash.

# Constants

No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
Address represents the 20 byte address of an Ethereum account.
No description provided by the author