package
0.0.0-20240513180841-b8ead2cebc07
Repository: https://github.com/jresearchlabs/aigisos.git
Documentation: pkg.go.dev

# Functions

BytesToPrivateKey reads the input byte array and constructs a private key if possible.
CreateAddress creates an Ethereum address.
CreateAddress2 creates an Ethereum address following the CREATE2 Opcode.
No description provided by the author
GenerateAndEncodePrivateKey returns a newly generated private key and the Base64 encoding of that private key.
GenerateKey generates a new key based on the secp256k1 elliptic curve.
GenerateOrReadPrivateKey generates a private key at the specified path, or reads it if a key file is present.
GetAddressFromKey extracts an address from the private key.
Keccak256 calculates the Keccak256.
MarshalPrivateKey serializes the private key's D value to a []byte.
MarshalPublicKey marshals a public key on the secp256k1 elliptic curve.
NewEIP155Signer returns a new EIP155Signer object.
NewSigner creates a new signer object (EIP155 or FrontierSigner).
No description provided by the author
ParsePublicKey parses bytes into a public key on the secp256k1 elliptic curve.
PubKeyToAddress returns the Ethereum address of a public key.
No description provided by the author
RecoverPubkey verifies the compact signature "signature" of "hash" for the secp256k1 curve.
Sign produces a compact signature of the data in hash with the given private key on the secp256k1 curve.
SigToPub returns the public key that created the given signature.
ValidateSignatureValues checks if the signature values are correct.

# Variables

S256 is the secp256k1 elliptic curve.

# Structs

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

# Interfaces

TxSigner is a utility interface used to recover data from a transaction.