@tinycloud/cli 0.9.1-beta.3 → 0.9.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/legacy-entry.js +2 -2
- package/dist/legacy-entry.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -27305,7 +27305,7 @@ async function verifyPkhSignature(did, payload, signature) {
|
|
|
27305
27305
|
}
|
|
27306
27306
|
function verifyDidKeySignature(did, payload, signature) {
|
|
27307
27307
|
const publicKey = ed25519PublicKeyFromDidKey2(did);
|
|
27308
|
-
const signatureBytes =
|
|
27308
|
+
const signatureBytes = decodeBase64Url4(signature);
|
|
27309
27309
|
if (signatureBytes.length !== 64) {
|
|
27310
27310
|
throw new LocationRecordValidationError(
|
|
27311
27311
|
"did:key signature must be a base64url Ed25519 signature"
|
|
@@ -27335,7 +27335,7 @@ function ed25519PublicKeyFromDidKey2(did) {
|
|
|
27335
27335
|
"did:key must be an Ed25519 public key"
|
|
27336
27336
|
);
|
|
27337
27337
|
}
|
|
27338
|
-
function
|
|
27338
|
+
function decodeBase64Url4(value) {
|
|
27339
27339
|
const alphabet2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
|
|
27340
27340
|
const bytes22 = [];
|
|
27341
27341
|
let buffer = 0;
|