pub fn rules_json(request: &Value) -> Result<Value>Expand description
The proof rules, {"op": ...} in (bytes in standard base64):
hashData{document, proof}->{hashData}: the signing input.legacyDigest{document, proof}->{digest}.contentDigest{document}->{digest}: SHA-256 of the JCS form of the document without its proof.prepare{document, verificationMethod, created, proofPurpose?, cryptosuite?}->{proof, signingInput}: the unsigned proof (eddsa-jcs-2022 unless named) and what to sign.attach{proof, signature}->{proof}.verify{document, publicKey}->{valid}: the eddsa-jcs-2022 proof.verifySet{document, ed25519Key, mldsa44Key?, slhdsa128Key?, dual?}->{valid}: a proof set (dual: exactly Ed25519 and ML-DSA-44).proofSuites{document}->{suites}.decodeProofValue{cryptosuite, proofValue}->{signature}.multikeyDecode{multikey}->{algorithm, publicKey}.multikeyEncode{algorithm, publicKey}->{multikey}.ed25519KeyProblem{publicKey}/ed25519SignatureProblem{signature}->{problem}(null when the strict rules accept it).ed25519Verify{publicKey, message, signature}->{valid}: strict; a refused key or signature is not valid.mldsa44KeysMatch{publicKey, secretKey}->{match}.mldsa44PublicFromSecret{secretKey}->{publicKey}(null when the bytes are no secret key).pairedMethods{verificationMethod}->{mldsa44, slhdsa128}.secretMultikeyEncode{algorithm, secretKey}->{secretKeyMultibase};secretMultikeyDecode{secretKeyMultibase}->{algorithm, secretKey}(the key file’s secret-key form; the request text is wiped, the answer holds the secret for the host to wipe).base58Encode{bytes}->{text};base58Decode{text, size?}->{bytes}(the reference’s refusals, longer than 8192 characters refused).keyFrom{key, algorithm?}->{publicKey}(null when the value is not a usable key of the algorithm, Ed25519 unless named).documentKey{document, did, verificationMethod, algorithm}->{publicKey}: the assertion key a DID document gives the DID.methodKey{method, algorithm}->{publicKey}: one verification method’s key, its type and material checked strictly (no document rules: for display and tooling).documentPublishes{document, did}->{mldsa44, slhdsa128}.