From 7be57d661ffeaf66f0959b9a351c1b43ecb85581 Mon Sep 17 00:00:00 2001 From: Nico Schapeler <38372048+cryptopapi997@users.noreply.github.com> Date: Sun, 11 Dec 2022 05:36:57 +0100 Subject: [PATCH] docs: add endianess for pubkey byte/buffer functions (#29079) --- web3.js/src/publickey.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web3.js/src/publickey.ts b/web3.js/src/publickey.ts index 1a90c5e1c0..449f90371f 100644 --- a/web3.js/src/publickey.ts +++ b/web3.js/src/publickey.ts @@ -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);