package
1.28.0
Repository: https://github.com/meshplus/bitxhub-kit.git
Documentation: pkg.go.dev

# Functions

FromECDSA exports a private key into a binary dump.
No description provided by the author
GenerateKey generates a new private key.
HexToECDSA parses a secp256k1 private key.
Keccak256 calculates and returns the Keccak256 hash of the input data.
LoadECDSA loads a secp256k1 private key from the given file.
New generate a ecdsa private key,input is algorithm type.
No description provided by the author
No description provided by the author
PaddedBigBytes encodes a big integer as a big-endian byte slice.
ReadBits encodes the absolute value of bigint as big-endian bytes.
SaveECDSA saves a secp256k1 private key to the given file with restrictive permissions.
ToECDSA creates a private key with the given D value.
ToECDSAUnsafe blindly converts a binary blob to a private key.
No description provided by the author
No description provided by the author
UnmarshalPubkey converts bytes to a secp256k1 public key.
No description provided by the author
ValidateSignatureValues verifies whether the signature values are valid with the given chain rules.

# Constants

DigestLength sets the signature digest exact length.
RecoveryIDOffset points to the byte offset within the signature that contains the recovery id.
64 bytes ECDSA signature + 1 byte recovery id.

# Variables

No description provided by the author

# Structs

PrivateKey ECDSA private key.
PublicKey ECDSA public key.
ECDSASig holds the r and s values of an ECDSA signature.

# Interfaces

KeccakState wraps sha3.state.