fabric: github.com/hyperledger/fabric/common/mocks/crypto Index | Files

package crypto

import "github.com/hyperledger/fabric/common/mocks/crypto"

Index

Package Files

localsigner.go

Variables

var FakeLocalSigner = &LocalSigner{
    Identity: []byte("IdentityBytes"),
    Nonce:    []byte("NonceValue"),
}

FakeLocalSigner is a signer which already has identity an nonce set to fake values

type LocalSigner Uses

type LocalSigner struct {
    Identity []byte
    Nonce    []byte
}

LocalSigner is a mock implementation of crypto.LocalSigner

func (*LocalSigner) NewSignatureHeader Uses

func (ls *LocalSigner) NewSignatureHeader() (*cb.SignatureHeader, error)

NewSignatureHeader returns a new signature header, nil

func (*LocalSigner) Sign Uses

func (ls *LocalSigner) Sign(msg []byte) ([]byte, error)

Sign returns the msg, nil

Package crypto imports 1 packages (graph). Updated 2018-03-26. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).