File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
modules/abstract-utxo/src Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 1+ import * as wasmUtxo from '@bitgo/wasm-utxo' ;
12import * as utxolib from '@bitgo/utxo-lib' ;
23
34export function getReplayProtectionAddresses ( network : utxolib . Network ) : string [ ] {
@@ -13,6 +14,12 @@ export function getReplayProtectionAddresses(network: utxolib.Network): string[]
1314 return [ ] ;
1415}
1516
17+ export function getReplayProtectionOutputScripts ( network : utxolib . Network ) : Buffer [ ] {
18+ return getReplayProtectionAddresses ( network ) . map ( ( address ) =>
19+ Buffer . from ( wasmUtxo . utxolibCompat . toOutputScript ( address , network ) )
20+ ) ;
21+ }
22+
1623export function isReplayProtectionUnspent < TNumber extends number | bigint > (
1724 u : utxolib . bitgo . Unspent < TNumber > ,
1825 network : utxolib . Network
You can’t perform that action at this time.
0 commit comments