Skip to content

Commit

Permalink
chore: cleanup unused utility functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Sep 5, 2023
1 parent a426b08 commit b308861
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 49 deletions.
6 changes: 0 additions & 6 deletions src/utils/base64.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,3 @@ export function toB64Url(buffer: Buffer): Base64String {
export function sha256B64Url(input: Buffer): Base64String {
return toB64Url(createHash('sha256').update(input).digest());
}

// check if it is a valid arweave base64url for a wallet public address, transaction id or smartweave contract
export function isValidArweaveBase64URL(base64URL: string): boolean {
const base64URLRegex = /^[a-zA-Z0-9_-]{43}$/;
return base64URLRegex.test(base64URL);
}
43 changes: 0 additions & 43 deletions src/utils/jwk.ts

This file was deleted.

0 comments on commit b308861

Please sign in to comment.