Documentation ¶
Index ¶
- Variables
- type KeyType
- type Signature
- func (*Signature) Descriptor() ([]byte, []int)
- func (m *Signature) GetKeyType() KeyType
- func (m *Signature) GetPublicKey() []byte
- func (m *Signature) GetSignature() []byte
- func (m *Signature) Marshal() (dAtA []byte, err error)
- func (m *Signature) MarshalTo(dAtA []byte) (int, error)
- func (*Signature) ProtoMessage()
- func (m *Signature) Reset()
- func (m *Signature) Size() (n int)
- func (m *Signature) String() string
- func (m *Signature) Unmarshal(dAtA []byte) error
- func (s *Signature) Verify(ctx context.Context, payload []byte) (ok bool)
- func (m *Signature) XXX_DiscardUnknown()
- func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Signature) XXX_Merge(src proto.Message)
- func (m *Signature) XXX_Size() int
- func (m *Signature) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthCrypto = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCrypto = fmt.Errorf("proto: integer overflow") )
View Source
var ( // ErrInvalidKeyType is returned when the cryptographic key scheme isn't supported. ErrInvalidKeyType = errors.New("given key type isn't supported yet") )
View Source
var KeyType_name = map[int32]string{
0: "RSA",
1: "ECDSA",
2: "Ed25519",
3: "Secp256k1",
}
View Source
var KeyType_value = map[string]int32{
"RSA": 0,
"ECDSA": 1,
"Ed25519": 2,
"Secp256k1": 3,
}
Functions ¶
This section is empty.
Types ¶
type Signature ¶
type Signature struct { KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3,enum=stratumn.node.core.crypto.KeyType" json:"key_type,omitempty"` PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A digital signature.
func (*Signature) Descriptor ¶
func (*Signature) GetKeyType ¶
func (*Signature) GetPublicKey ¶
func (*Signature) GetSignature ¶
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *Signature) XXX_DiscardUnknown()
func (*Signature) XXX_Marshal ¶ added in v0.2.0
func (*Signature) XXX_Unmarshal ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.