signing

package
v0.5.1-rc7 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Faucet

Types

type Signer

type Signer struct {
	Type       protocol.SignatureType
	Url        *url.URL
	PrivateKey []byte
	Height     uint64
	Timestamp  uint64
}

func (*Signer) Initiate

func (s *Signer) Initiate(txn *protocol.Transaction) (protocol.Signature, error)

func (*Signer) InitiateSynthetic

func (s *Signer) InitiateSynthetic(txn *protocol.Transaction, router routing.Router) (protocol.Signature, error)

func (*Signer) SetHeight

func (s *Signer) SetHeight(height uint64) *Signer

func (*Signer) SetKeyPageUrl

func (s *Signer) SetKeyPageUrl(bookUrl *url.URL, pageIndex uint64) *Signer

func (*Signer) SetPrivateKey

func (s *Signer) SetPrivateKey(privKey []byte) *Signer

func (*Signer) SetTimestamp

func (s *Signer) SetTimestamp(timestamp uint64) *Signer

func (*Signer) SetTimestampToNow

func (s *Signer) SetTimestampToNow() *Signer

func (*Signer) SetTimestampWithVar

func (s *Signer) SetTimestampWithVar(timestamp *uint64) *Signer

func (*Signer) SetType

func (s *Signer) SetType(typ protocol.SignatureType) *Signer

func (*Signer) SetUrl

func (s *Signer) SetUrl(u *url.URL) *Signer

func (*Signer) Sign

func (s *Signer) Sign(message []byte) (protocol.Signature, error)

Jump to

Keyboard shortcuts

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