Questions tagged [cryptography]
The cryptography tag has no usage guidance.
21
questions
1
vote
1
answer
32
views
How to generate a tz4 (BLS-MinPk key pair) address
I'd like to generate a Tezos tz4 (BLS sig) address.
What do I need to know about this curve and what is a tool (preferably CLI) I can use to create a tz4 address for myself?
1
vote
1
answer
82
views
Implementing signing logic for TZ4 (BLS12-381) Addresses using TypeScript
I was wondering if anyone has more detailed knowledge on signing logic and how octez-client derives public keys from a given BLsk prefixed secret key?
I've used a number of NPM packages that assist ...
2
votes
1
answer
30
views
How to use the pytezos.crypto.encoding.base58_encode function?
i'm trying to use the pytezos.crypto.key library. But i miss something giving the Key object my public key as an argument. Here my code :
encoded_key=pytezos.crypto.encoding.base58_encode(bytearray(b'...
1
vote
1
answer
51
views
Chest keys generated by @smartpy/timelock are not functional
The tool I use
https://www.npmjs.com/package/@smartpy/timelock,
https://github.com/RomarQ/tezos-timelock/
the tool works good on other functions such as openChest and createChestKey.
I used node 14.14....
0
votes
1
answer
52
views
Is it possible to create secure guessing game on chain?
We are trying to build battleship style guessing game and on smartcontract storages/data are visible so people can easly cheat.Is there any work around for this ?
2
votes
1
answer
346
views
How to get tezos KT address from the public key?
In tezos, I am able to get the tezos address starts with tz1 from the public key but I am unable to get the correct KT address.
I am using this code from github.https://github.com/TezTech/eztz/blob/...
3
votes
0
answers
143
views
HD Key Derivation for ED25519
I'm currently looking into implementing HD Key derivation for Tezos addresses, and while there's plenty of implementations and standards regarding SECP256k1 addresses, from my understanding it would ...
1
vote
1
answer
134
views
Why does secret_key_hashes have keys of differing lengths?
In my .tezos-client/secret_keys file, I have two keys of different lengths. Both start with edsk and are unencrypted.
The first is 98 characters long, which I believe is the actual secret key. The ...
4
votes
1
answer
245
views
Secp256k1 with Non-Deterministic Signatures
I am using an HSM which signs bytes using the secp256k1 curve. For a given set of input bytes, I blake2b hash them and sign them.
My understanding is that most cryptocurrencies use deterministic ...
1
vote
1
answer
264
views
Get unencrypted secret key from the encrpyted one in a programmatic way
I developed a small script to generate a new tezos account, result has this form: ->
{ sk:
'edskReYTc3xorfemyNAcrYb6Sz8Wgj6e1PfevpZ6uysf4KXWBNxXcoLA4KBtZp7hmUCy6V3bhtWZRMSuya5DgXA1TU2JXYeDmG',
...
0
votes
0
answers
96
views
Activate tezos generated account (sk => secret)
I'm trying to generate an account keys based on the Eztz lib and I got the following result:
{
"mnemonic": [
"cruel",
"announce",
"mimic",
"budget",
"crouch",
"frequent",
...
0
votes
1
answer
187
views
How to sign transaction from tz2 address?
Can i sign my transaction if i use secp256k1? And how it do?
If i'm using sign function from eztz lib, i takes
TypeError: invalid privateKey length
Private key coded using secp256k1 curve.
1
vote
0
answers
61
views
Can i create HD wallets?
Can I generate extended (master) public key and derive child keys from it? Can you show example how to create extended public key and then import this key for deriving childs.
4
votes
1
answer
114
views
How to implement a signature checker for the signature scheme BLS?
We are willing to implement a signature checker for the signature scheme BLS (or BLS12-381). To the best of our knowledge, it may not be too painful since the smart contract language already supports ...
6
votes
1
answer
225
views
How to calculate a random seed?
For example, we have 126/128 nonces, revealed in cycle 99.
/chains/main/blocks/409599/context/raw/json/cycle/98/nonces?depth=1
If I understand correctly, using these nonces we can calculate the ...
5
votes
2
answers
225
views
Unable to get consistent tz2 (secp256pk1) signature
I am trying to reproduce the signing algorithm used for tz2 address which uses the secp256pk1 elliptic curve.
My problem is that when I try to verify if the signature is valid with the tezos cli, I ...
7
votes
0
answers
288
views
Get valid keys/address with ed25519 [closed]
I read this great post on tz1 keys with ed25519. I also saw that the eztz lib doesn't support ed25519 keys.
So I'm trying to understand briefly what is considered a valid procedure to get keys/...
12
votes
1
answer
524
views
Why a reveal operation?
In order for everybody to be able to validate signatures, public keys have to be stored on the blockchain using reveal operations. As far as I understand, such operations are not needed in Ethereum, ...
5
votes
1
answer
172
views
HD Derivation Path with P-256 signature
Is it possible to use P-256 encryption system on a ledger nano with tezbox?
With Obsidian's command line tool, it is possible to use 3 types of signatures (Ed25519, Secp256k1, P-256). What are the ...
14
votes
1
answer
912
views
What elliptic curves are used by Tezos?
Do tz1, tz2, tz3 addresses correspond to the different elliptic curves used by Tezos?
10
votes
2
answers
130
views
Encryption within smart contract
I can't find much documentation on this, is it possible to encrypt/decrypt data within a tezos smart contract? So how would I do something like AES crypto (although does not matter much) in a smart ...