Repair attenuate tool

This commit is contained in:
Tony Garnock-Jones 2021-05-20 12:47:56 +02:00
parent 5cd3198739
commit 0cd71ddb15
1 changed files with 1 additions and 1 deletions

View File

@ -8,6 +8,6 @@ const cs0 = new Reader<_embedded>(pat).next();
if (!Array.isArray(cs0)) throw new Error("Expected array of caveats");
const cs = cs0.map(c => toCaveat(c) ?? (()=>{ throw new Error("Cannot decode caveat"); })());
attenuate(baseCap, ... cs).then(derived => {
console.log(derived.asPreservesText());
console.log(fromSturdyRef(derived).asPreservesText());
console.log(sturdyEncode(fromSturdyRef(derived)).toHex());
});