Global Feed Post Login
Replying to Avatar کیهان

how can i generate a secp256k1 seckey in c to be used in libsecp256k1?

nostr:nprofile1qqsxwkuyle67y94tj378gw8w2xw2wa6nwmwlqhddlwnz0z7sztsaw2qppemhxue69uhkummn9ekx7mp0su9alh nostr:nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gprfmhxue69uhhq7tjv9kkjepwve5kzar2v9nzucm0d5hszxmhwden5te0wfjkccte9emk2um5v4exucn5vvhxxmmd9uq3xamnwvaz7tmhda6zuat50phjummwv5hsx7c9z9 nostr:nprofile1qqsr9cvzwc652r4m83d86ykplrnm9dg5gwdvzzn8ameanlvut35wy3gpz3mhxue69uhhyetvv9ujuerpd46hxtnfduq3qamnwvaz7tmwdaehgu3wwa5kuegpzemhxue69uhhyetvv9ujuurjd9kkzmpwdejhglzevy3

#asknostr #c

Avatar
x 11mo ago

Just use /dev/urandom if on linux. It's a pretty good randomness generator fit for crypto purposes.

Just read 32 bytes from it and feed it to a seckey.

Never reuse any of the same number in any capacity.

Reply to this note

Please Login to reply.

Discussion

Avatar
کیهان 11mo ago

thanks a lot. going to try it tomorrow.

Thread collapsed