Explore tweets tagged as #Uint8Array
@nektro
meghan 🌻
2 years
In the next version of Bun Response, Request, and Bun.file() get the "bytes" method to return content as a Uint8Array
3
4
64
@k4rliky
Imagineer de andar por casa
4 months
Replace "new Uint8Array" with "Uint8Array.from" in your Node.js code to make it faster. I use it for gRPC communication. Uint8Array.from is the winner, usually running 1.7×–3.05× faster.
1
0
5
@OctonetAI
OctonetAI
6 months
Thanks for the feedback! Some users mentioned issues with setting wallet environment variables in OctoMCP — specifically, the need to convert private keys to Uint8Array, which often requires installing extra packages. We've listened and made it easier. 🚀 OctoMCP now supports
12
29
113
@bunjavascript
Bun
1 year
In the next version of Bun Uint8Array.fromBase64 uint8Array.toBase64 Uint8Array.fromHex uint8Array.toHex
3
6
217
@UdochukwukaO
Udochukwuka Onyela
2 years
Been writing a lot of tests, recently ran into this and turns out that jest breaks instances of Uint8Array (and ArrayBuffer) so to fix this I had to declare a global instance of both in the jest config, spent a lot of time researching a fix lol😂.
0
2
7
@xkit
Garrett Smith
2 years
Only 11% got this basic JavaScript quiz. Array default sort function is lexicographic:— “13” < “3” — so — [1,5,3,8,13,4].sort() — results — [1,13,3,4,5,8] To sort numerically, consider typed arrays. new Uint8Array([1,5,3,8,13,4]). sort() — results — [1,3,4,5,8,13]
1
0
0
@Aishwarya_1007
Aishwarya Gupta
1 year
Stepped into week 1 of Web3 learnt about:- 1.Public and Private keys 2.Bits and bytes 3.Hashing vs Encryption 4.ASCII, Hex, Base64 and Base58 5.Uint8Array got to know about One of the famous sayings in Web3 world ~Not your keys, Not your Crypto✌️
10
1
95
@h1Disclosed
H1 Disclosed - Public Disclosures
2 years
⚡ Path traversal through path stored in Uint8Array in Node.js 20 👨🏻‍💻 @tniessen_ ➟ Internet Bug Bounty 🟥 High 💰 $3,495 🔗 https://t.co/NL79uDV7SV #bugbounty #bugbountytips #cybersecurity #infosec
2
8
56
@sachigoyal27
Sachi
1 year
✅️Attended @kirat_tw Web3 cohort class 2 and learnt about: •Public- Private key pair •Bits and bytes •Encoding types (ASCII, Hex, Base64 and Base58) •Hashing vs Encryption •Signatures •Uint8Array ~Not your keys, Not your Crypto👍 #coding #100xdevs #Web3
2
1
40
@dceddia
Dave Ceddia
2 years
I never thought I'd use XHR again... ...but I could not for the life of me get fetch() to send a Uint8Array, so XHR it is 🤷‍♂️
2
1
12
@fabiospampinato
Fabio Spampinato
11 months
Interesting trace for some code that encrypts and decrypts a 1GB Uint8Array in Node v22. It seems very inefficient. 1. Blue block: encryption, ~200ms. 2. Yellow block: adding a metadata header to the encrypted buffer, which requires copying it. 3. Green block: decryption,
1
0
5
@the_mcnaveen
Naveen
2 years
Hi @leeerob How can I do this? .com/#/something Right now I'm getting this error: The argument 'path' must be a string or Uint8Array without null bytes.
2
0
2
@ChromiumDev
Chrome for Developers
2 months
Decode base64 strings into byte arrays with Uint8Array.fromBase64() → https://t.co/Va7wEm7OCK Now part of Baseline, it's the preferred alternative to atob() for easier handling of binary data.
4
24
169
@yuki_web3_jp
CAC ブロックチェーン推進グループ ユウキ(Yuki)
4 months
本日、開発者向けの #Solana の徹底ハンズオン動画を作成しました! 約2時間の動画になりました🔥 ◎内容◎ 1 signerの作成〜署名・検証  ①プロジェクトの作成  ②署名者の作成  ③Uint8Array型とbase58型  ④署名者、キーペアの作成  ⑤署名と検証 2フロントエンドでのウォレット接続
4
9
45
@robpalmer2
Rob Palmer
5 months
ECMAScript excitement 😉 Congrats to @bakkoting on advancing UInt8Array ↔️ Base64/Hex to Stage 4 @TC39 this week 🎉 UInt8Array.prototype. toBase64 toHex UInt8Array. fromBase64 fromHex It lets you convert directly between binary data and Base64/Hex strings 👍
3
29
191
@SuperTestnet
Super Testnet
2 months
Finally, the uint8array format in javascript natively supports hex encoding
2
0
8
@syhily
Yufan Sheng
2 years
Import anything in astro as the ArrayBuffer or Uint8Array in two steps. 1. Install the vite-plugin-arraybuffer and add it to your astro.config.ts. 2. Add a declaration in env.d.ts. Then you can import asserts in relative path and ?arraybuffer suffix to make the import as the
1
0
5
@samgoodwin89
sam
5 months
Is https://t.co/Sz7tY1L1UN<Uint8Array, ResponseError> the right data structure an S3 Object?
4
1
6
@warianoguerra
Mariano Guerra
2 years
// WebAssembly Reverse Polish Notation Compiler in 218 bytes let c=(s,b)=>(b=s.split(' ').flatMap(t=>(+t==t?[65,t]:106+'+-* /'.indexOf(t))),s=b.length,WebAssembly.instantiate(Uint8Array.from([0,97,115,109,1,0,0,0,1,5,1,96,0,1,127,3,2,1,0,7,5,1,1,97,0,0,10,4+s,1,2+s,0,...b,11])))
0
0
3