crypto

package
v0.94.0-pre Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package crypto provides an interface to cryptographic syscalls.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ECDSASecp256k1CheckMultisig added in v0.91.0

func ECDSASecp256k1CheckMultisig(msg []byte, pubs []interop.PublicKey, sigs []interop.Signature) bool

ECDSASecp256k1CheckMultisig checks multiple ECDSA signatures at once. It uses `Neo.Crypto.CheckMultisigWithECDsaSecp256k1` syscall.

func ECDSASecp256r1CheckMultisig added in v0.91.0

func ECDSASecp256r1CheckMultisig(msg []byte, pubs []interop.PublicKey, sigs []interop.Signature) bool

ECDSASecp256r1CheckMultisig checks multiple ECDSA signatures at once. It uses `Neo.Crypto.CheckMultisigWithECDsaSecp256r1` syscall.

func ECDsaSecp256k1Verify added in v0.91.0

func ECDsaSecp256k1Verify(msg []byte, pub interop.PublicKey, sig interop.Signature) bool

ECDsaSecp256k1Verify checks that sig is correct msg's signature for a given pub (serialized public key). It uses `Neo.Crypto.VerifyWithECDsaSecp256k1` syscall.

func ECDsaSecp256r1Verify added in v0.91.0

func ECDsaSecp256r1Verify(msg []byte, pub interop.PublicKey, sig interop.Signature) bool

ECDsaSecp256r1Verify checks that sig is correct msg's signature for a given pub (serialized public key). It uses `Neo.Crypto.VerifyWithECDsaSecp256r1` syscall.

func RIPEMD160 added in v0.91.0

func RIPEMD160(b []byte) interop.Hash160

RIPEMD160 computes RIPEMD160 hash of b. It uses `Neo.Crypto.RIPEMD160` syscall.

func SHA256

func SHA256(b []byte) interop.Hash256

SHA256 computes SHA256 hash of b. It uses `Neo.Crypto.SHA256` syscall.

Types

This section is empty.

Jump to

Keyboard shortcuts

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