Documentation ¶
Index ¶
- func Faucet(txn *protocol.Transaction) (protocol.Signature, error)
- type Signer
- func (s *Signer) Initiate(txn *protocol.Transaction) (protocol.Signature, error)
- func (s *Signer) InitiateSynthetic(txn *protocol.Transaction, router routing.Router) (protocol.Signature, error)
- func (s *Signer) SetHeight(height uint64) *Signer
- func (s *Signer) SetKeyPageUrl(bookUrl *url.URL, pageIndex uint64) *Signer
- func (s *Signer) SetPrivateKey(privKey []byte) *Signer
- func (s *Signer) SetTimestamp(timestamp uint64) *Signer
- func (s *Signer) SetTimestampToNow() *Signer
- func (s *Signer) SetTimestampWithVar(timestamp *uint64) *Signer
- func (s *Signer) SetType(typ protocol.SignatureType) *Signer
- func (s *Signer) SetUrl(u *url.URL) *Signer
- func (s *Signer) Sign(message []byte) (protocol.Signature, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Signer ¶
type Signer struct { Type protocol.SignatureType Url *url.URL PrivateKey []byte Height uint64 Timestamp uint64 }
func (*Signer) InitiateSynthetic ¶
func (*Signer) SetKeyPageUrl ¶
func (*Signer) SetPrivateKey ¶
func (*Signer) SetTimestamp ¶
func (*Signer) SetTimestampToNow ¶
func (*Signer) SetTimestampWithVar ¶
Click to show internal directories.
Click to hide internal directories.