Resolve "WIP: UTXO Selection and Storage"
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user