Documentation
¶
Index ¶
- Constants
- type VerificationKey2018
- func (v VerificationKey2018) Controller() string
- func (v VerificationKey2018) ID() string
- func (v VerificationKey2018) JsonLdContext() string
- func (v VerificationKey2018) MarshalJSON() ([]byte, error)
- func (v VerificationKey2018) Type() string
- func (v *VerificationKey2018) UnmarshalJSON(bytes []byte) error
- func (v VerificationKey2018) VerifyASN1(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)
- func (v VerificationKey2018) VerifyBytes(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)
- type VerificationKey2020
- func (v VerificationKey2020) Controller() string
- func (v VerificationKey2020) ID() string
- func (v VerificationKey2020) JsonLdContext() string
- func (v VerificationKey2020) MarshalJSON() ([]byte, error)
- func (v VerificationKey2020) Type() string
- func (v *VerificationKey2020) UnmarshalJSON(bytes []byte) error
- func (v VerificationKey2020) VerifyASN1(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)
- func (v VerificationKey2020) VerifyBytes(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)
Constants ¶
View Source
const ( JsonLdContext2018 = "https://w3id.org/security/suites/ed25519-2018/v1" Type2018 = "Ed25519VerificationKey2018" )
View Source
const ( JsonLdContext2020 = "https://w3id.org/security/suites/ed25519-2020/v1" Type2020 = "Ed25519VerificationKey2020" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VerificationKey2018 ¶
type VerificationKey2018 struct {
// contains filtered or unexported fields
}
func NewVerificationKey2018 ¶
func NewVerificationKey2018(id string, pubkey ed25519.PublicKey, controller did.DID) *VerificationKey2018
func (VerificationKey2018) Controller ¶
func (v VerificationKey2018) Controller() string
func (VerificationKey2018) ID ¶
func (v VerificationKey2018) ID() string
func (VerificationKey2018) JsonLdContext ¶
func (v VerificationKey2018) JsonLdContext() string
func (VerificationKey2018) MarshalJSON ¶
func (v VerificationKey2018) MarshalJSON() ([]byte, error)
func (VerificationKey2018) Type ¶
func (v VerificationKey2018) Type() string
func (*VerificationKey2018) UnmarshalJSON ¶
func (v *VerificationKey2018) UnmarshalJSON(bytes []byte) error
func (VerificationKey2018) VerifyASN1 ¶
func (v VerificationKey2018) VerifyASN1(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)
func (VerificationKey2018) VerifyBytes ¶
func (v VerificationKey2018) VerifyBytes(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)
type VerificationKey2020 ¶
type VerificationKey2020 struct {
// contains filtered or unexported fields
}
func NewVerificationKey2020 ¶
func NewVerificationKey2020(id string, pubkey ed25519.PublicKey, controller did.DID) *VerificationKey2020
func (VerificationKey2020) Controller ¶
func (v VerificationKey2020) Controller() string
func (VerificationKey2020) ID ¶
func (v VerificationKey2020) ID() string
func (VerificationKey2020) JsonLdContext ¶
func (v VerificationKey2020) JsonLdContext() string
func (VerificationKey2020) MarshalJSON ¶
func (v VerificationKey2020) MarshalJSON() ([]byte, error)
func (VerificationKey2020) Type ¶
func (v VerificationKey2020) Type() string
func (*VerificationKey2020) UnmarshalJSON ¶
func (v *VerificationKey2020) UnmarshalJSON(bytes []byte) error
func (VerificationKey2020) VerifyASN1 ¶
func (v VerificationKey2020) VerifyASN1(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)
func (VerificationKey2020) VerifyBytes ¶
func (v VerificationKey2020) VerifyBytes(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)
Click to show internal directories.
Click to hide internal directories.