Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FakeLocalSigner = &LocalSigner{ Identity: []byte("IdentityBytes"), Nonce: []byte("NonceValue"), }
FakeLocalSigner is a signer which already has identity an nonce set to fake values
Functions ¶
This section is empty.
Types ¶
type LocalSigner ¶
LocalSigner is a mock implmeentation of crypto.LocalSigner
func (*LocalSigner) NewSignatureHeader ¶
func (ls *LocalSigner) NewSignatureHeader() (*cb.SignatureHeader, error)
NewSignatureHeader returns a new signature header, nil
func (*LocalSigner) Sign ¶
func (ls *LocalSigner) Sign(msg []byte) ([]byte, error)
Sign returns the msg, nil
Click to show internal directories.
Click to hide internal directories.