docs: add endianess for pubkey byte/buffer functions (#29079)

This commit is contained in:
Nico Schapeler 2022-12-11 05:36:57 +01:00 committed by GitHub
parent bcf449158e
commit 7be57d661f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 {
return this.toBuffer();
}
/**
* Return the Buffer representation of the public key
* Return the Buffer representation of the public key in big endian
*/
toBuffer(): Buffer {
const b = this._bn.toArrayLike(Buffer);