Repair attenuate tool
This commit is contained in:
parent
5cd3198739
commit
0cd71ddb15
|
@ -8,6 +8,6 @@ const cs0 = new Reader<_embedded>(pat).next();
|
||||||
if (!Array.isArray(cs0)) throw new Error("Expected array of caveats");
|
if (!Array.isArray(cs0)) throw new Error("Expected array of caveats");
|
||||||
const cs = cs0.map(c => toCaveat(c) ?? (()=>{ throw new Error("Cannot decode caveat"); })());
|
const cs = cs0.map(c => toCaveat(c) ?? (()=>{ throw new Error("Cannot decode caveat"); })());
|
||||||
attenuate(baseCap, ... cs).then(derived => {
|
attenuate(baseCap, ... cs).then(derived => {
|
||||||
console.log(derived.asPreservesText());
|
console.log(fromSturdyRef(derived).asPreservesText());
|
||||||
console.log(sturdyEncode(fromSturdyRef(derived)).toHex());
|
console.log(sturdyEncode(fromSturdyRef(derived)).toHex());
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue