Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEcdsaKeySuiteType ¶
IsEcdsaKeySuiteType returns true if key cryptographic suite type is of elliptic curve, namely secp251k1
Types ¶
type Proof ¶
type Proof struct { Type string `json:"type"` Creator string `json:"creator"` Created time.Time `json:"created"` ProofValue string `json:"proofValue,omitempty"` Domain *string `json:"domain,omitempty"` Nonce *string `json:"nonce,omitempty"` }
Proof defines a linked data proof object Spec https://w3c-dvcg.github.io/ld-proofs/#linked-data-proof-overview
type SuiteType ¶
type SuiteType string
SuiteType defines a type for LD crypto suite type
const ( // SuiteTypeRsaSignature defines LD crypto suite type for RSA signatures SuiteTypeRsaSignature SuiteType = "RsaSignature2018" // SuiteTypeRsaVerification defines LD crypto suite type for RSA verifications SuiteTypeRsaVerification SuiteType = "RsaVerificationKey2018" // SuiteTypeSecp256k1Signature defines LD crypto suite type for Secp256k signatures SuiteTypeSecp256k1Signature SuiteType = "EcdsaSecp256k1Signature2019" // SuiteTypeSecp256k1Verification defines LD crypto suite type for Secp256k verifications SuiteTypeSecp256k1Verification SuiteType = "EcdsaSecp256k1VerificationKey2019" // SuiteTypeSecp256k1SignatureAuth defines LD crypto suite type for Secp256k authentication SuiteTypeSecp256k1SignatureAuth SuiteType = "EcdsaSecp256k1SignatureAuthentication2019" // SuiteTypeSecp256k1Signature2018 defines LD crypto suite type for Secp256k signatures SuiteTypeSecp256k1Signature2018 SuiteType = "Secp256k1Signature2018" // SuiteTypeSecp256k1Verification2018 defines LD crypto suite type for Secp256k verifications SuiteTypeSecp256k1Verification2018 SuiteType = "Secp256k1VerificationKey2018" // SuiteTypeSecp256k1SignatureAuth2018 defines LD crypto suite type for Secp256k authentication SuiteTypeSecp256k1SignatureAuth2018 SuiteType = "Secp256k1SignatureAuthentication2018" // SuiteTypeSecp256r1Signature defines LD crypto suite type for Secp256k signatures SuiteTypeSecp256r1Signature SuiteType = "EcdsaSecp256r1Signature2019" // SuiteTypeSecp256r1Verification defines LD crypto suite type for Secp256k verifications SuiteTypeSecp256r1Verification SuiteType = "EcdsaSecp256r1VerificationKey2019" // SuiteTypeEd25519Signature defines LD crypto suite type for Ed25519 signatures SuiteTypeEd25519Signature SuiteType = "Ed25519Signature2018" // SuiteTypeEd25519Verification defines LD crypto suite type for Ed25519 verifications SuiteTypeEd25519Verification SuiteType = "Ed25519VerificationKey2018" // SuiteTypeKoblitzSignature defines a LD crypto suite type for Koblitz signatures SuiteTypeKoblitzSignature SuiteType = "EcdsaKoblitzSignature2016" )
Click to show internal directories.
Click to hide internal directories.