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

package signer

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


Package Files


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) Serialize Uses

func (si *Signer) Serialize() ([]byte, error)

func (*Signer) Sign Uses

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

Package signer imports 12 packages (graph) and is imported by 4 packages. Updated 2019-11-19. Refresh now. Tools for package owners.