Use Bytes Primitive
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user