docs: add endianess for pubkey byte/buffer functions (#29079)
This commit is contained in:
parent
bcf449158e
commit
7be57d661f
|
@ -109,14 +109,14 @@ export class PublicKey extends Struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the byte array representation of the public key
|
* Return the byte array representation of the public key in big endian
|
||||||
*/
|
*/
|
||||||
toBytes(): Uint8Array {
|
toBytes(): Uint8Array {
|
||||||
return this.toBuffer();
|
return this.toBuffer();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the Buffer representation of the public key
|
* Return the Buffer representation of the public key in big endian
|
||||||
*/
|
*/
|
||||||
toBuffer(): Buffer {
|
toBuffer(): Buffer {
|
||||||
const b = this._bn.toArrayLike(Buffer);
|
const b = this._bn.toArrayLike(Buffer);
|
||||||
|
|
Loading…
Reference in New Issue