{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package signer\n\n## Types\n\n```go\ntype Config struct {\n\tMSPID        string\n\tIdentityPath string\n\tKeyPath      string\n}\n```\nConfig holds the configuration for creation of a Signer\n\n```go\ntype ECDSASignature struct {\n\tR, S *big.Int\n}\n```\n\n```go\ntype Signer struct {\n\tCreator []byte\n\t// contains filtered or unexported fields\n}\n```\nSigner 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.\n\n```go\nfunc NewSigner(conf Config) (*Signer, error)\n```\nNewSigner creates a new Signer out of the given configuration\n\n```go\nfunc (si *Signer) NewSignatureHeader() (*common.SignatureHeader, error)\n```\n\n```go\nfunc (si *Signer) Sign(msg []byte) ([]byte, error)\n```\n\n","path":"github.com/eric-erki/https-hyperledger.org/cmd/common/signer","name":"signer","synopsis":"","isRedistributable":true}
