sign

package
v0.0.0-...-25b0412 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: MIT Imports: 16 Imported by: 0

README

The sign code is taken from https://github.com/asuleymanov/rpc/tree/master/transactions with some adoptions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RefBlockNum

func RefBlockNum(blockNumber uint32) uint16

func RefBlockPrefix

func RefBlockPrefix(blockID string) (uint32, error)

func SignBufferSha256

func SignBufferSha256(bufSha256 []byte, privateKey *ecdsa.PrivateKey) []byte

Types

type SignedTransaction

type SignedTransaction struct {
	*types.Transaction
}

func NewSignedTransaction

func NewSignedTransaction(tx *types.Transaction) *SignedTransaction

func (*SignedTransaction) Digest

func (tx *SignedTransaction) Digest(chain string) ([]byte, error)

func (*SignedTransaction) Serialize

func (tx *SignedTransaction) Serialize() ([]byte, error)

func (*SignedTransaction) Sign

func (tx *SignedTransaction) Sign(wifs []string, chain string) error

Directories

Path Synopsis
Package rfc6979 is an implementation of RFC 6979's deterministic DSA.
Package rfc6979 is an implementation of RFC 6979's deterministic DSA.

Jump to

Keyboard shortcuts

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