signature

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHashData

func GetHashData(data SignableData) []byte

func GetHashForSigning

func GetHashForSigning(data SignableData) []byte

func Sign

func Sign(data SignableData, prikey []byte) ([]byte, error)

func SignBySigner

func SignBySigner(data SignableData, signer Signer) ([]byte, error)

Types

type SignableData

type SignableData interface {
	interfaces.ICodeContainer

	GetProgramHashes() ([]Uint160, error)

	SetPrograms([]*program.Program)
	GetPrograms() []*program.Program
	SerializeUnsigned(io.Writer) error
}

type Signer

type Signer interface {
	PrivKey() []byte
	PubKey() *crypto.PubKey
}

Jump to

Keyboard shortcuts

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