Use Bytes Primitive

This commit is contained in:
Jim Hamill
2025-07-23 00:27:41 +00:00
parent 9af5dc0087
commit e72c678785
10 changed files with 62 additions and 72 deletions
+2 -2
View File
@@ -176,9 +176,9 @@ export class HDPrivateNode {
*
* @returns The Node's Private Key (as a Uint8Array).
*/
public toBytes(): Uint8Array {
public toBytes(): Bytes {
// Encode the XPriv from our node info.
return this.node.privateKey;
return Bytes.from(this.node.privateKey);
}
/**