Questions tagged [cryptography]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
39 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....
user avatar
  • 101
1 vote
1 answer
42 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 ?
user avatar
  • 101
1 vote
1 answer
226 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/...
user avatar
3 votes
0 answers
102 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 ...
user avatar
1 vote
1 answer
110 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 ...
user avatar
3 votes
1 answer
161 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 ...
user avatar
1 vote
1 answer
213 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', ...
user avatar
  • 444
0 votes
0 answers
88 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", ...
user avatar
  • 444
0 votes
1 answer
160 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.
user avatar
  • 141
1 vote
0 answers
53 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.
user avatar
  • 141
4 votes
0 answers
96 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 ...
user avatar
6 votes
1 answer
172 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 ...
user avatar
  • 2,327
4 votes
2 answers
203 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 ...
user avatar
7 votes
0 answers
263 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/...
user avatar
11 votes
1 answer
393 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, ...
user avatar
  • 716
5 votes
1 answer
155 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 ...
user avatar
12 votes
1 answer
744 views

What elliptic curves are used by Tezos?

Do tz1, tz2, tz3 addresses correspond to the different elliptic curves used by Tezos?
user avatar
  • 1,979
10 votes
2 answers
125 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 ...
user avatar