9.0.1 • Published 2 years ago
http-signature-zcap-verify v9.0.1
http-signature-zcap-verify
A library for verifying Authorization Capability (ZCAP) invocations via HTTP signatures
Example "getVerifier" for "verifyCapabilityInvocation"
import {CryptoLD} from 'crypto-ld';
import {Ed25519VerificationKey2020} from
'@digitalbazaar/ed25519-verification-key-2020';
const cryptoLd = new CryptoLD();
cryptoLd.use(Ed25519VerificationKey2020);
async function getVerifier({keyId, documentLoader}) {
const key = await cryptoLd.fromKeyId({id: keyId, documentLoader});
const verificationMethod = await key.export(
{publicKey: true, includeContext: true});
const verifier = key.verifier();
return {verifier, verificationMethod};
}
9.0.1
2 years ago
9.0.0
2 years ago
8.2.0
3 years ago
8.1.1
3 years ago
7.2.1
3 years ago
8.1.0
3 years ago
8.0.0
3 years ago
7.2.0
3 years ago
7.0.0
3 years ago
7.1.0
3 years ago
6.0.0
3 years ago
5.0.0
3 years ago
4.0.0
3 years ago
3.0.0
4 years ago
2.0.0
4 years ago
1.3.0
4 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.1.0
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
5 years ago
0.1.0
5 years ago