crypto

package
v0.15.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2025 License: GPL-3.0, LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package crypto provides wrapper types for go-ethereum's crypto implementation

Index

Constants

View Source
const (
	SignatureLength = crypto.SignatureLength
	DigestLength    = crypto.DigestLength
	HashLength      = 32 // SHA3-256 hash length
)

Re-export constants

Variables

View Source
var (
	Keccak256               = crypto.Keccak256
	Keccak256Hash           = crypto.Keccak256Hash
	CreateAddress           = crypto.CreateAddress
	CreateAddress2          = crypto.CreateAddress2
	ToECDSA                 = crypto.ToECDSA
	ToECDSAUnsafe           = crypto.ToECDSAUnsafe
	FromECDSA               = crypto.FromECDSA
	UnmarshalPubkey         = crypto.UnmarshalPubkey
	FromECDSAPub            = crypto.FromECDSAPub
	HexToECDSA              = crypto.HexToECDSA
	LoadECDSA               = crypto.LoadECDSA
	SaveECDSA               = crypto.SaveECDSA
	GenerateKey             = crypto.GenerateKey
	PubkeyToAddress         = crypto.PubkeyToAddress
	HashData                = crypto.HashData
	NewKeccakState          = crypto.NewKeccakState
	Sign                    = crypto.Sign
	VerifySignature         = crypto.VerifySignature
	Ecrecover               = crypto.Ecrecover
	SigToPub                = crypto.SigToPub
	ValidateSignatureValues = crypto.ValidateSignatureValues
)

Re-export functions

Functions

func S256

func S256() elliptic.Curve

S256 returns an instance of the secp256k1 curve.

Types

type Address added in v0.15.5

type Address = common.Address

type Hash added in v0.15.5

type Hash = common.Hash

Type aliases for convenience

type KeccakState

type KeccakState = crypto.KeccakState

Re-export types

Directories

Path Synopsis
Package blake2b provides wrapper types for go-ethereum's blake2b implementation
Package blake2b provides wrapper types for go-ethereum's blake2b implementation
Package bn256 provides wrapper types for go-ethereum's bn256 implementation
Package bn256 provides wrapper types for go-ethereum's bn256 implementation
Package kzg4844 provides wrapper types for go-ethereum's kzg4844 implementation
Package kzg4844 provides wrapper types for go-ethereum's kzg4844 implementation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL