Skip to content

feat: add wasm-bitgo#170

Open
johnoliverdriscoll wants to merge 1 commit intomasterfrom
sl-mps
Open

feat: add wasm-bitgo#170
johnoliverdriscoll wants to merge 1 commit intomasterfrom
sl-mps

Conversation

@johnoliverdriscoll
Copy link

Ticket: HSM-1425

@johnoliverdriscoll johnoliverdriscoll force-pushed the sl-mps branch 4 times, most recently from 0654239 to 2dbfd60 Compare February 19, 2026 22:15
@johnoliverdriscoll johnoliverdriscoll marked this pull request as ready for review February 19, 2026 22:25
@johnoliverdriscoll johnoliverdriscoll requested a review from a team as a code owner February 19, 2026 22:25
Copy link
Contributor

@lcovar lcovar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the wasm functions use .unwrap() which will crash on bad input - wasm-solana and wasm-utxo both return Result<T, Error> instead, can you match that pattern?

@lcovar
Copy link
Contributor

lcovar commented Feb 19, 2026

also validate inputs before processing - bad data (wrong size keys, empty arrays, invalid party_id) will panic instead of returning an error

{
"name": "@bitgo/wasm-mps",
"description": "Minimal WebAssembly multi-party-schnorr implementation",
"version": "0.0.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"version": "0.0.1",
"version": "0.0.1",
"private": true

until its ready to be published (some manual work is needed from our devops)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@johnoliverdriscoll johnoliverdriscoll force-pushed the sl-mps branch 2 times, most recently from dd91a86 to ad68856 Compare February 20, 2026 00:27
@johnoliverdriscoll
Copy link
Author

the wasm functions use .unwrap() which will crash on bad input - wasm-solana and wasm-utxo both return Result<T, Error> instead, can you match that pattern?

You must be looking at the Rust test. The actual functions that are wasm-bound return proper Result types.

also validate inputs before processing - bad data (wrong size keys, empty arrays, invalid party_id) will panic instead of returning an error

I don't think this is the case. I added some unit tests that show the code does not panic with bad inputs.

],
state,
)
.unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better return Result here instead

],
state,
)
.unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dito

@@ -0,0 +1,3 @@
# wasm-mps

WASM bindings for clients using Silence Lab's multi-party-schnorr protocol.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

url please

@OttoAllmendinger
Copy link
Contributor

pls change commit and title to wasm-mps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments