Secp256k1 is the name of the elliptic curve used by Bitcoin to implement its public key cryptography.
Questions tagged [secp256k1]
60 questions
0
votes
0 answers
Confusion around point addition on secp256k1
I am using https://github.com/HareInWeed/gec for point addition on the secp256k1. The code below adds two points on secp256k1 curve and displays the results.
#include
#include
#include
#include…

Nikhil Srinivas
- 11
- 5
0
votes
1 answer
construction of ES256KSigner throws mis-match private key length
I tried to build a siger to sign a verifiable credential using jwt format. But the construct of ES256KSigner fails Invalid private key format. Expecting 32 bytes, but got 43. I am not familar with cryption, and only guess there is some wrong…

shijie xu
- 1,975
- 21
- 52
0
votes
1 answer
Can I use a BLS12-381 private key to sign Ethereum transactions?
I'm new to cryptography and I've recently been studying BLS signatures. Please forgive me if I make any mistakes while writing.
I've tried generating a BLS key pair and using the private key to derive an Ethereum account and sign on-chain…

pgermani
- 1
- 1
0
votes
1 answer
"non-hexadecimal number found in fromhex() arg at position 65"
I made a program that makes Bitcoin Address with random private key.
Some variables and methods that do not have a separate description are the fixed values of the SECP256K1 elliptic curve. As they are not related to errors, I omitted…

Dino_coder
- 23
- 5
0
votes
1 answer
using paulmillr/noble-secp256k1 with deno deploy
I have this line in my file: import * as secp256k1 from "npm:@noble/secp256k1";
It works fine locally (deno run)
When I try to deno deploy, it cannot find the module.
I read this is because deno deploy doesn't yet support npm:.
To circumvent it I…

Uri
- 25,622
- 10
- 45
- 72
0
votes
0 answers
Public key generator in Python (SECP256K1 elliptic curve cryptography)
I am currently new in Python and cryptography. I am trying to make a public key of SECP256K1 elliptic curve manually(without related library use), from a random generated private key as I learned. The method of generating private key is free. What…

hib0823
- 1
- 1
0
votes
1 answer
Significance of setRelaxVerificationKeyValidation() in JwtConsumerBuilder() while validating the JWT
val jwtConsumer = JwtConsumerBuilder()
.setVerificationKey(getPublicKeyFromPEMString(publicKeyAuth)) // verify the signature with the public key
.setRelaxVerificationKeyValidation() // needed if the key is smaller than 256 bits
…

Benjamin
- 105
- 10
0
votes
1 answer
Run blockscout on M1 chip
I'm trying to run blockscout on my local machine (M1 chip). Following this guide, I'm getting this error:
Generated mix_erlang_tasks app
c_src/build_deps.sh
Cloning into 'secp256k1'...
remote: Enumerating objects: 8569, done.
remote: Counting…

Meldum
- 579
- 1
- 4
- 6
0
votes
0 answers
how reverse an algorithm in c
i have the following formula for generating public key
hash160 h = h0+h1+h2+h3+h4+h5+h6+h7+h8+h9
pubkey = g.base[h0]+g.offset[h1]+g.offset[h2]+g.offset[h3]+g.offset[h4]+g.offset[h5]+g.offset[h6]+g.offset[h7]+g.offset[h8]+g.offset[h9]
And the…

terry franklin
- 19
- 3
0
votes
0 answers
How to fix secp256k1 error while installing sawtooth-sdk python in Windows 10
C:\Users\akhilesh.s>pip install sawtooth-sdk
Collecting sawtooth-sdk
Using cached sawtooth_sdk-1.2.5-py3-none-any.whl (97 kB)
Requirement already satisfied: colorlog in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages…

Akhilesh S Bhat
- 1
- 1
0
votes
0 answers
Is it possible to build CLSAG ring signatures on Secp256k1?
Is it possible to implement CLSAG ring signatures with SECP256k1? And would the implementation be very different from this (https://github.com/crate-crypto/CLSAG) Ristretto255 variant of the CLSAG ring signatures?
As I understand it, it doesn't…

TaylorProX
- 1
- 1
0
votes
2 answers
How do I decrypt a Nostr message?
Here's how to send a private message to a Nostr Pubkey:
const crypto = require("crypto");
const secp = require("noble-secp256k1");
const ourPrivateKey = "";
const ourPubKey = "";
const theirPublicKey = "";
const text = "Hello World";
let…

Mike
- 2,633
- 6
- 31
- 41
0
votes
1 answer
Swift Key derivation. Public key decoding
I need a help with creating P256.Signing.PublicKey from child key that were got with using HMAC-Sha256 hashing (we implemented key derivation). And after that get a SecKey to create signature for messages
I can't understand how to decode it. Child…

Alina
- 37
- 7
0
votes
1 answer
In ethers.js, can recoverPublicKey be used for signature verification?
In the bitcoin wiki they describe the algorithm used to verify a signature using ECDSA with Secp256k1. This algorithm has 3 inputs: signature, message hash and publicKey.
https://en.bitcoin.it/wiki/Elliptic_Curve_Digital_Signature_Algorithm
In…

Luis F.
- 1,222
- 1
- 11
- 12
0
votes
0 answers
How to generate ECDSA signature using secp256k1 curve and SHA256 algorithm for XML document in java
We can create XML Digital Signature using RSA keys. But how do I use elliptic curve keys to sign xml files ? I get exception at this line xmlSignature.sign(domSignCtx) as -
javax.xml.crypto.MarshalException: Invalid ECParameterSpec
…

VIJAYAKUMAR MAJJAGI
- 45
- 8