crypto

package
v0.95.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: MIT Imports: 2 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 CheckMultisig added in v0.94.0

func CheckMultisig(pubs []interop.PublicKey, sigs []interop.Signature) bool

CheckMultisig checks that script container (transaction) is signed by multiple ECDSA keys at once. It uses `System.Crypto.CheckMultisig` syscall.

func CheckSig added in v0.94.0

func CheckSig(pub interop.PublicKey, sig interop.Signature) bool

CheckSig checks that sig is correct signature of the script container (transaction) for a given pub (serialized public key). It uses `System.Crypto.CheckSig` syscall.

Types

This section is empty.

Jump to

Keyboard shortcuts

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