crypto

package
v0.91.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ECDSAVerifyPrice = 1000000

ECDSAVerifyPrice is a gas price of a single verification.

Variables

This section is empty.

Functions

func ECDSASecp256k1CheckMultisig added in v0.91.0

func ECDSASecp256k1CheckMultisig(ic *interop.Context) error

ECDSASecp256k1CheckMultisig checks multiple ECDSA signatures at once using Secp256k1 elliptic curve.

func ECDSASecp256k1Verify added in v0.91.0

func ECDSASecp256k1Verify(ic *interop.Context) error

ECDSASecp256k1Verify checks ECDSA signature using Secp256k1 elliptic curve

func ECDSASecp256r1CheckMultisig added in v0.91.0

func ECDSASecp256r1CheckMultisig(ic *interop.Context) error

ECDSASecp256r1CheckMultisig checks multiple ECDSA signatures at once using Secp256r1 elliptic curve.

func ECDSASecp256r1Verify added in v0.91.0

func ECDSASecp256r1Verify(ic *interop.Context) error

ECDSASecp256r1Verify checks ECDSA signature using Secp256r1 elliptic curve.

func Register added in v0.91.0

func Register(ic *interop.Context)

Register adds crypto interops to ic.

func RipeMD160 added in v0.91.0

func RipeMD160(ic *interop.Context) error

RipeMD160 returns RipeMD160 hash of the data.

func Sha256

func Sha256(ic *interop.Context) error

Sha256 returns sha256 hash of the data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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