Resolve "WIP: UTXO Selection and Storage"

This commit is contained in:
Jim Hamill
2025-01-11 08:39:24 +00:00
parent f934216d68
commit 33fd9bac4d
156 changed files with 13304 additions and 4595 deletions
+17
View File
@@ -0,0 +1,17 @@
import { binToHex } from '@bitauth/libauth';
// TODO: Put unsorted stuff in here and then try to sort them somewhere more sensible later.
export function getOutpointId(outpoint: {
outpointTransactionHash: Uint8Array;
outpointIndex: number;
}): string {
const outpointHashHex = binToHex(outpoint.outpointTransactionHash);
return `${outpointHashHex}:${outpoint.outpointIndex}`;
}
// TODO: Jason uses form timestampMs_entityId
export function generateActivityId() {
return Date.now().toString();
}