Versions in this module Expand all Collapse all v1 v1.0.3 Feb 27, 2025 Changes in this version + var AllForksEnabled = &Forks + var ErrInvalidBLSSignature = errors.New("invalid BLS Signature") + var S256 = btcec.S256() + func Base64Encode(b []byte) string + func BytesToECDSAPrivateKey(input []byte) (*ecdsa.PrivateKey, error) + func BytesToEd25519PrivateKey(input []byte) (ed25519.PrivateKey, error) + func CFBDecrypt(text, MySecret string) (string, error) + func CFBEncrypt(text, MySecret string) (string, error) + func CreateAddress(addr types.Address, nonce uint64) types.Address + func CreateAddress2(addr types.Address, salt [32]byte, inithash []byte) types.Address + func Decode(s string) []byte + func Ecrecover(hash, sig []byte) ([]byte, error) + func GenerateAndEncodeECDSAPrivateKey() (*ecdsa.PrivateKey, []byte, error) + func GenerateAndEncodeICPIdentitySecretKey() (ed25519.PrivateKey, []byte, error) + func GenerateECDSAKey() (*ecdsa.PrivateKey, error) + func GenerateOrReadPrivateKey(path string) (*ecdsa.PrivateKey, error) + func GetAddressFromKey(key goCrypto.PrivateKey) (types.Address, error) + func Keccak256(v ...[]byte) []byte + func Keccak256Hash(v ...[]byte) (hash types.Hash) + func MarshalECDSAPrivateKey(priv *ecdsa.PrivateKey) ([]byte, error) + func MarshalPublicKey(pub *ecdsa.PublicKey) []byte + func ParseECDSAPrivateKey(buf []byte) (*ecdsa.PrivateKey, error) + func ParsePublicKey(buf []byte) (*ecdsa.PublicKey, error) + func PubKeyToAddress(pub *ecdsa.PublicKey) types.Address + func ReadConsensusKey(manager secrets.SecretsManager) (*ecdsa.PrivateKey, error) + func RecoverPubkey(signature, hash []byte) (*ecdsa.PublicKey, error) + func SigToPub(hash, sig []byte) (*ecdsa.PublicKey, error) + func Sign(priv *ecdsa.PrivateKey, hash []byte) ([]byte, error) + func ValidateSignatureValues(v, r, s *big.Int, isHomestead bool) bool + type Fork uint64 + func NewFork(n uint64) *Fork + func (f Fork) Active(block uint64) bool + func (f Fork) Int() *big.Int + type Forks struct + Byzantium *Fork + Constantinople *Fork + EIP150 *Fork + EIP155 *Fork + EIP158 *Fork + Homestead *Fork + Istanbul *Fork + London *Fork + Petersburg *Fork + func (f *Forks) At(block uint64) ForksInTime + func (f *Forks) IsByzantium(block uint64) bool + func (f *Forks) IsConstantinople(block uint64) bool + func (f *Forks) IsEIP150(block uint64) bool + func (f *Forks) IsEIP155(block uint64) bool + func (f *Forks) IsEIP158(block uint64) bool + func (f *Forks) IsHomestead(block uint64) bool + func (f *Forks) IsLondon(block uint64) bool + func (f *Forks) IsPetersburg(block uint64) bool + type ForksInTime struct + Byzantium bool + Constantinople bool + EIP150 bool + EIP155 bool + EIP158 bool + Homestead bool + Istanbul bool + London bool + Petersburg bool + type KeccakState interface + Read func([]byte) (int, error) + func NewKeccakState() KeccakState + type KeyType string + const KeyBLS + const KeyECDSA