fabric: github.com/hyperledger/fabric/cmd/common/signer Index | Files

package signer

import "github.com/hyperledger/fabric/cmd/common/signer"

Index

Package Files

signer.go

type Config Uses

type Config struct {
    MSPID        string
    IdentityPath string
    KeyPath      string
}

Config holds the configuration for creation of a Signer

type ECDSASignature Uses

type ECDSASignature struct {
    R, S *big.Int
}

type Signer Uses

type Signer struct {
    Creator []byte
    // contains filtered or unexported fields
}

Signer signs messages. TODO: Ideally we'd use an MSP to be agnostic, but since it's impossible to initialize an MSP without a CA cert that signs the signing identity, this will do for now.

func NewSigner Uses

func NewSigner(conf Config) (*Signer, error)

NewSigner creates a new Signer out of the given configuration

func (*Signer) NewSignatureHeader Uses

func (si *Signer) NewSignatureHeader() (*common.SignatureHeader, error)

func (*Signer) Sign Uses

func (si *Signer) Sign(msg []byte) ([]byte, error)

Package signer imports 14 packages (graph) and is imported by 3 packages. Updated 2019-09-08. Refresh now. Tools for package owners.