Versions in this module Expand all Collapse all v0 v0.3.0 Oct 23, 2023 v0.2.0 Oct 23, 2023 Changes in this version + const AssertionMethod + const Authentication + const BLS12381G2Key2020Context + const Ed25519VerificationKey2020Context + const JSONWebKey2020Context + const JWTFormat + const LDPFormat + const Multikey2021Context + const SECP256k1VerificationKey2019Context + const W3CSecurityContext + const X25519KeyAgreementKey2020Context + func EnsureRequiredContexts(context []any, requiredContexts []string) []any + func GetContextsFromProvable(p WithEmbeddedProof) ([]any, error) + type CryptoSuite interface + Sign func(s Signer, p WithEmbeddedProof) error + Verify func(v Verifier, p WithEmbeddedProof) error + type CryptoSuiteInfo interface + CanonicalizationAlgorithm func() string + ID func() string + MessageDigestAlgorithm func() gocrypto.Hash + RequiredContexts func() []string + SignatureAlgorithm func() SignatureType + Type func() LDKeyType + type CryptoSuiteProofType interface + Canonicalize func(marshaled []byte) (*string, error) + CreateVerifyHash func(doc map[string]any, proof crypto.Proof, proofOptions *ProofOptions) ([]byte, error) + Digest func(tbd []byte) ([]byte, error) + Marshal func(data any) ([]byte, error) + type GenericProvable map[string]any + func (g *GenericProvable) GetProof() *crypto.Proof + func (g *GenericProvable) SetProof(p *crypto.Proof) + type LDKeyType string + const BLS12381G1Key2020 + const BLS12381G2Key2020 + const ECDSASECP256k1VerificationKey2019 + const Ed25519VerificationKey2018 + const Ed25519VerificationKey2020 + const JSONWebKey2020Type + const MultikeyType + const P256Key2021 + const P384Key2021 + const P521Key2021 + const X25519KeyAgreementKey2019 + const X25519KeyAgreementKey2020 + func (ld LDKeyType) String() string + type PayloadFormat string + type ProofOptions struct + Contexts []any + RevealIndexes []int + type ProofPurpose string + type SignatureType string + type Signer interface + GetKeyID func() string + GetPayloadFormat func() PayloadFormat + GetProofPurpose func() ProofPurpose + GetSignatureType func() SignatureType + GetSigningAlgorithm func() string + SetPayloadFormat func(format PayloadFormat) + SetProofPurpose func(purpose ProofPurpose) + Sign func(tbs []byte) ([]byte, error) + type Verifier interface + GetKeyID func() string + Verify func(message, signature []byte) error + type WithEmbeddedProof interface + GetProof func() *crypto.Proof + SetProof func(p *crypto.Proof)