signer

package
v0.0.0-...-fbe82ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MSPID        string
	IdentityPath string
	KeyPath      string
}

config保存的配置 创建签名者

type ECDSASignature

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

type Signer

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

签名者在邮件上签名。 托多:理想情况下,我们会用MSP来做不可知论者,但因为不可能 在没有签署签名标识的CA证书的情况下初始化MSP, 现在就这样。

func NewSigner

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

NewSigner根据给定的配置创建新的签名者

func (*Signer) Sign

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL