Ninjastic
Home
Search
Users
Boards
Addresses
Ctrl + K
Toggle theme
Open menu
Post
Edited versions
Quotes to this post
Post
57029432
Topic
5337128
Board
Development & Technical Discussion
Re: Neural Networks and Secp256k1
by
ETFbitcoin
on
17/05/2021, 09:35:37 UTC
Quote from: DoinSomeStuff on May 16, 2021, 01:55:27 PM
Don't forget to make youre X,Y length to 32 or 256.
while(X.length != 256)
X = "0" + X;
If it's string, just use
zfill
.
Code:
>>> text = 'ABCDEF'
>>> text.zfill(10)
'0000ABCDEF'
>>> text.zfill(6)
'ABCDEF'