key

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DerivePrivateKeyECDSA

func DerivePrivateKeyECDSA(mnemonic, path string) ([]byte, error)

func DerivePrivateKeyED25519

func DerivePrivateKeyED25519(mnemonic, path string) ([]byte, error)

func DerivePrivateKeySR25519

func DerivePrivateKeySR25519(mnemonic, path string) ([]byte, error)

func Keccak256

func Keccak256(data []byte) []byte

func Keccak256Hash

func Keccak256Hash(data []byte) common.Hash

func PrivateKey2PublicKeyECDSA

func PrivateKey2PublicKeyECDSA(privateKey []byte) ([]byte, error)

func PrivateKey2PublicKeyED25519

func PrivateKey2PublicKeyED25519(privateKey []byte) ([]byte, error)

func PrivateKey2PublicKeySR25519

func PrivateKey2PublicKeySR25519(privateKey []byte) ([]byte, error)

func SignWithPrivateKeyECDSAForEVM

func SignWithPrivateKeyECDSAForEVM(privateKeyBytes, data []byte) ([]byte, error)

func SignWithPrivateKeyECDSAForUTXO

func SignWithPrivateKeyECDSAForUTXO(privateKeyBytes, data []byte) ([]byte, error)

func SignWithPrivateKeyED25519

func SignWithPrivateKeyED25519(privateKeyBytes, data []byte) ([]byte, error)

func SignWithPrivateKeySR25519

func SignWithPrivateKeySR25519(privateKeyBytes, data []byte) ([]byte, error)

func SignWithPrivateKeySchnorr

func SignWithPrivateKeySchnorr(privateKeyBytes, data []byte) ([]byte, error)

func VerifySignatureECDSAForEVM

func VerifySignatureECDSAForEVM(publicKeyBytes, data, signature []byte) bool

func VerifySignatureECDSAForUTXO

func VerifySignatureECDSAForUTXO(publicKey, data, sig []byte) bool

func VerifySignatureED25519

func VerifySignatureED25519(publicKeyBytes, data, signature []byte) bool

func VerifySignatureSR25519

func VerifySignatureSR25519(publicKey, data, sig []byte) bool

func VerifySignatureSchnorr

func VerifySignatureSchnorr(publicKey, data, sig []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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