Documentation
¶
Index ¶
Constants ¶
View Source
const ( Cryptosuite2022 = "eddsa-rdfc-2022" ProofType = credential.ProofTypeDataIntegrity )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SignOptions ¶
type SignOptions struct {
VerificationMethod string
ProofPurpose string
Created time.Time
Domain string
Challenge string
}
SignOptions contains options for signing
type Suite ¶
type Suite struct {
}
Suite implements the EdDSA Cryptosuite v1.0 (eddsa-rdfc-2022)
func (*Suite) Sign ¶
func (s *Suite) Sign(cred *credential.RDFCredential, key ed25519.PrivateKey, opts *SignOptions) (*credential.RDFCredential, error)
Sign signs a credential using eddsa-rdfc-2022
func (*Suite) Verify ¶
func (s *Suite) Verify(cred *credential.RDFCredential, key ed25519.PublicKey) error
Verify verifies a credential using eddsa-rdfc-2022
Click to show internal directories.
Click to hide internal directories.