crypto

package
v1.2.66 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BLS

type BLS interface {
	VerifyBLS(key []byte, msg []byte, sig []byte) error
}

type Ed25519

type Ed25519 interface {
	VerifyEd25519(key []byte, msg []byte, sig []byte) error
}

type Hasher

type Hasher interface {
	// Sha256 cryptographic function
	Sha256(data []byte) ([]byte, error)

	// Keccak256 cryptographic function
	Keccak256(data []byte) ([]byte, error)

	// Ripemd160 cryptographic function
	Ripemd160(data []byte) ([]byte, error)
}

type Secp256k1

type Secp256k1 interface {
	VerifySecp256k1(key []byte, msg []byte, sig []byte) error
}

type VMCrypto

type VMCrypto interface {
	Hasher
	Ed25519
	BLS
	Secp256k1
}

VMCrypto will provide the interface to the main crypto functionalities of the vm

Directories

Path Synopsis
bls

Jump to

Keyboard shortcuts

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