package
10.9.0+incompatible
Repository: https://github.com/status-im/status-go.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
CompressPubkey encodes a public key to the 33-byte compressed format.
CreateAddress creates an ethereum address given the bytes and the nonce.
CreateAddress2 creates an ethereum address given the address bytes, initial contract code hash and a salt.
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
No description provided by the author
ExtractSignature returns a public key for a given data and signature.
ExtractSignatures extract from tuples of signatures content a public key DEPRECATED: use ExtractSignature.
FromECDSA exports a private key into a binary dump.
No description provided by the author
No description provided by the author
HexToECDSA parses a secp256k1 private key.
Keccak256 calculates and returns the Keccak256 hash of the input data.
Keccak256Hash calculates and returns the Keccak256 hash of the input data, converting it to an internal Hash data structure.
Keccak512 calculates and returns the Keccak512 hash of the input data.
LoadECDSA loads a secp256k1 private key from the given file.
No description provided by the author
S256 returns an instance of the secp256k1 curve.
SaveECDSA saves a secp256k1 private key to the given file with restrictive permissions.
Sign calculates an ECDSA signature.
SignBytes signs the hash of arbitrary data.
SignBytesAsHex signs the Keccak256 hash of arbitrary data and returns its hex representation.
SignStringAsHex signs the Keccak256 hash of arbitrary string and returns its hex representation.
SigToPub returns the public key that created the given signature.
TextAndHash is a helper function that calculates a hash for the given message that can be safely used to calculate a signature from.
TextHash is a helper function that calculates a hash for the given message that can be safely used to calculate a signature from.
ToECDSA creates a private key with the given D value.
ToECDSAUnsafe blindly converts a binary blob to a private key.
UnmarshalPubkey converts bytes to a secp256k1 public key.
VerifySignatures verifies tuples of signatures content/hash/public key.
# 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.
# Structs
No description provided by the author
EthereumCrypto is an implementation of Crypto with cryptographic primitives recommended by the Double Ratchet Algorithm specification.