Skip to content

Commit f5babca

Browse files
OttoAllmendingerllm-git
andcommitted
fix(utxo-staking): add support for bip322-simple signature type
Fix compilation error with babylon delegationMessage where signMessage wasn't accepting the 'bip322-simple' type. Implementation still needs updating to handle this type. Issue: BTC-2032 Co-authored-by: llm-git <[email protected]>
1 parent c8f312b commit f5babca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/utxo-staking/src/babylon/delegationMessage.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ export function getBtcProviderForECKey(
7373
}
7474

7575
return {
76-
async signMessage(signingStep: vendor.SigningStep, message: string, type: 'ecdsa'): Promise<string> {
76+
async signMessage(
77+
signingStep: vendor.SigningStep,
78+
message: string,
79+
type: 'ecdsa' | 'bip322-simple'
80+
): Promise<string> {
7781
assert(type === 'ecdsa');
7882
switch (signingStep) {
7983
case 'proof-of-possession':

0 commit comments

Comments
 (0)