fix: Revert "fix: use base64urlpad"

This reverts commit ce47696d90.
This commit is contained in:
Derrick Hammer 2023-12-12 14:34:08 -05:00
parent a577ee694d
commit 74407cf9a1
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ import {
} from "@lumeweb/libs5/lib/service/registry.js"; } from "@lumeweb/libs5/lib/service/registry.js";
import { Buffer } from "buffer"; import { Buffer } from "buffer";
import { throwValidationError } from "../utils/validation.js"; import { throwValidationError } from "../utils/validation.js";
import { base64urlpad } from "multiformats/bases/base64"; import { base64url } from "multiformats/bases/base64";
export const DEFAULT_GET_ENTRY_OPTIONS = { export const DEFAULT_GET_ENTRY_OPTIONS = {
...DEFAULT_BASE_OPTIONS, ...DEFAULT_BASE_OPTIONS,
endpointGetEntry: "/s5/registry", endpointGetEntry: "/s5/registry",
@ -115,10 +115,10 @@ export async function publishEntry(
endpointPath: opts.endpointPublishEntry, endpointPath: opts.endpointPublishEntry,
method: "post", method: "post",
data: { data: {
pk: base64urlpad.encode(signedEntry.pk), pk: base64url.encode(signedEntry.pk),
revision: signedEntry.revision, revision: signedEntry.revision,
data: base64urlpad.encode(signedEntry.data), data: base64url.encode(signedEntry.data),
signature: base64urlpad.encode(signedEntry.signature), signature: base64url.encode(signedEntry.signature),
}, },
}); });
} }