Documentation ¶
Overview ¶
nolint
nolint
Index ¶
- func New(keyType bccrypto.KeyType) (bccrypto.PrivateKey, error)
- func ParsePrivateKey(der []byte) (bccrypto.PrivateKey, error)
- func ParsePubKey(der []byte) (bccrypto.PublicKey, error)
- type PrivateKey
- func (key *PrivateKey) Bytes() ([]byte, error)
- func (key *PrivateKey) PublicKey() bccrypto.PublicKey
- func (key *PrivateKey) Sign(data []byte) ([]byte, error)
- func (key *PrivateKey) SignWithOpts(data []byte, opts *bccrypto.SignOpts) ([]byte, error)
- func (key *PrivateKey) String() (string, error)
- func (key *PrivateKey) ToStandardKey() crypto.PrivateKey
- func (key *PrivateKey) Type() bccrypto.KeyType
- type PublicKey
- func (p *PublicKey) Bytes() ([]byte, error)
- func (p *PublicKey) String() (string, error)
- func (p *PublicKey) ToStandardKey() crypto.PublicKey
- func (p *PublicKey) Type() bccrypto.KeyType
- func (p *PublicKey) Verify(data []byte, sig []byte) (bool, error)
- func (p *PublicKey) VerifyWithOpts(data []byte, sig []byte, opts *bccrypto.SignOpts) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePrivateKey ¶
func ParsePrivateKey(der []byte) (bccrypto.PrivateKey, error)
ParsePrivateKey is used to parse pqc private key
Types ¶
type PrivateKey ¶
func (*PrivateKey) Bytes ¶
func (key *PrivateKey) Bytes() ([]byte, error)
func (*PrivateKey) PublicKey ¶
func (key *PrivateKey) PublicKey() bccrypto.PublicKey
func (*PrivateKey) Sign ¶
func (key *PrivateKey) Sign(data []byte) ([]byte, error)
func (*PrivateKey) SignWithOpts ¶
func (*PrivateKey) String ¶
func (key *PrivateKey) String() (string, error)
func (*PrivateKey) ToStandardKey ¶
func (key *PrivateKey) ToStandardKey() crypto.PrivateKey
func (*PrivateKey) Type ¶
func (key *PrivateKey) Type() bccrypto.KeyType
type PublicKey ¶
PublicKey is pqc public key
Click to show internal directories.
Click to hide internal directories.