crypto

package
v0.90.1-pre Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 9 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 ECDSACheckMultisig

func ECDSACheckMultisig(ic *interop.Context, v *vm.VM) error

ECDSACheckMultisig checks multiple ECDSA signatures at once.

func ECDSAVerify

func ECDSAVerify(ic *interop.Context, v *vm.VM) error

ECDSAVerify checks ECDSA signature.

func GetInterop

func GetInterop(ic *interop.Context) func(uint32) *vm.InteropFuncPrice

GetInterop returns interop getter for crypto-related stuff.

func Sha256

func Sha256(ic *interop.Context, v *vm.VM) 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