Skip to content

Commit

Permalink
Merge pull request #4 from labscommunity/main
Browse files Browse the repository at this point in the history
use normal base64 decoding
  • Loading branch information
rosmcmahon authored Jan 20, 2025
2 parents af7c43c + 991031a commit 69404af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ endif
clean:
@$(CLEAN_CMD)

# cross platform pwsh
clean-cp:
@pwsh -Command 'if(Test-Path $(OUTPUT_DIR)){Remove-Item -Force -Recurse $(OUTPUT_DIR)}'
@pwsh -Command 'if(Test-Path $(NODE_MODULES)){Remove-Item -Force -Recurse $(NODE_MODULES)}'
@pwsh -Command 'if(Test-Path $(DOCKER_DIST)){Remove-Item -Force -Recurse $(DOCKER_DIST)}'
@pwsh -Command 'if(Test-Path $(ROLLUP_CACHE)){Remove-Item -Force -Recurse $(ROLLUP_CACHE)}'

################
# Host Targets #
################
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export type { Secp256k1 } from './api/secp256k1';
import { Secp256k1, WasmSecp256k1 } from './api/secp256k1';
import SB64_SECP256K1_WASM from './gen/secp256k1.wasm';

export const initWasmSecp256k1 = (): Promise<Secp256k1> => WasmSecp256k1(Buffer.from(SB64_SECP256K1_WASM, 'base64url'));
export const initWasmSecp256k1 = (): Promise<Secp256k1> => WasmSecp256k1(Buffer.from(SB64_SECP256K1_WASM, 'base64'));

0 comments on commit 69404af

Please sign in to comment.