Documentation
¶
Index ¶
- Constants
- type VerificationKey2019
- func (vm VerificationKey2019) Controller() string
- func (vm VerificationKey2019) ID() string
- func (vm VerificationKey2019) JsonLdContext() string
- func (vm VerificationKey2019) KeyExchange(local crypto.PrivateKeyKeyExchange) ([]byte, error)
- func (vm VerificationKey2019) MarshalJSON() ([]byte, error)
- func (vm VerificationKey2019) PrivateKeyIsCompatible(local crypto.PrivateKeyKeyExchange) bool
- func (vm VerificationKey2019) Type() string
- func (vm *VerificationKey2019) UnmarshalJSON(bytes []byte) error
- func (vm VerificationKey2019) VerifyASN1(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)
- func (vm VerificationKey2019) VerifyBytes(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)
Constants ¶
View Source
const ( JsonLdContext = "https://w3id.org/security/suites/secp256k1-2019/v1" Type2019 = "EcdsaSecp256k1VerificationKey2019" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VerificationKey2019 ¶
type VerificationKey2019 struct {
// contains filtered or unexported fields
}
func NewVerificationKey2019 ¶
func NewVerificationKey2019(id string, pubkey *secp256k1.PublicKey, controller did.DID) *VerificationKey2019
func (VerificationKey2019) Controller ¶
func (vm VerificationKey2019) Controller() string
func (VerificationKey2019) ID ¶
func (vm VerificationKey2019) ID() string
func (VerificationKey2019) JsonLdContext ¶
func (vm VerificationKey2019) JsonLdContext() string
func (VerificationKey2019) KeyExchange ¶
func (vm VerificationKey2019) KeyExchange(local crypto.PrivateKeyKeyExchange) ([]byte, error)
func (VerificationKey2019) MarshalJSON ¶
func (vm VerificationKey2019) MarshalJSON() ([]byte, error)
func (VerificationKey2019) PrivateKeyIsCompatible ¶
func (vm VerificationKey2019) PrivateKeyIsCompatible(local crypto.PrivateKeyKeyExchange) bool
func (VerificationKey2019) Type ¶
func (vm VerificationKey2019) Type() string
func (*VerificationKey2019) UnmarshalJSON ¶
func (vm *VerificationKey2019) UnmarshalJSON(bytes []byte) error
func (VerificationKey2019) VerifyASN1 ¶
func (vm VerificationKey2019) VerifyASN1(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)
func (VerificationKey2019) VerifyBytes ¶
func (vm VerificationKey2019) VerifyBytes(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)
Click to show internal directories.
Click to hide internal directories.