Skip to content

Commit 89fa74e

Browse files
feat(sdk-core): add messages to BuildParamsUTXO for BIP322
Define Bip322Message type with message and address fields and add to BuildParamsUTXO codec to support message signing on BTC transactions. Co-authored-by: llm-git <[email protected]> TICKET: BTC-2410
1 parent 4f95b75 commit 89fa74e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/sdk-core/src/bitgo/wallet/BuildParams.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
import * as t from 'io-ts';
44
import { getCodecProperties } from '../utils/codecProps';
55

6+
export const Bip322Message = t.type({
7+
message: t.string,
8+
address: t.string,
9+
});
10+
611
export const BuildParamsUTXO = t.partial({
712
/* deprecated. the change address type */
813
addressType: t.unknown,
@@ -30,6 +35,7 @@ export const BuildParamsUTXO = t.partial({
3035
/* rbf */
3136
rbfTxIds: t.array(t.string),
3237
isReplaceableByFee: t.boolean,
38+
messages: t.array(Bip322Message),
3339
});
3440

3541
export const BuildParamsStacks = t.partial({

0 commit comments

Comments
 (0)