Documentation ¶
Index ¶
Constants ¶
View Source
const (
//noncosize是默认的noncosize
NonceSize = 24
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IdentitySerializer ¶
IdentitySerializer序列化标识
type LocalSigner ¶
type LocalSigner interface { SignatureHeaderMaker Signer }
localsigner是一个临时存根接口,将由本地MSP实现。
type SignatureHeaderCreator ¶
type SignatureHeaderCreator struct {
SignerSupport
}
SignatureHeaderCreator创建签名头
func NewSignatureHeaderCreator ¶
func NewSignatureHeaderCreator(ss SignerSupport) *SignatureHeaderCreator
NewSignatureHeaderCreator创建新的签名头
func (*SignatureHeaderCreator) NewSignatureHeader ¶
func (bs *SignatureHeaderCreator) NewSignatureHeader() (*cb.SignatureHeader, error)
NewSignatureHeader创建具有正确签名标识和有效nonce的SignatureHeader
type SignatureHeaderMaker ¶
type SignatureHeaderMaker interface { // NewSignatureHeader() (*cb.SignatureHeader, error) }
SignatureHeaderMaker创建新的SignatureHeader
type SignerSupport ¶
type SignerSupport interface { Signer IdentitySerializer }
SignerSupport实现对LocalSigner所需的支持
Click to show internal directories.
Click to hide internal directories.