Questions tagged [cryptography]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
26 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
0answers
48 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
1answer
39 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 ...
2
votes
1answer
63 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
1answer
90 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
0answers
60 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
1answer
105 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
0answers
45 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
0answers
59 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
1answer
85 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 ...
4
votes
2answers
124 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
0answers
163 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/...
11
votes
1answer
308 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
1answer
138 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 ...
11
votes
1answer
422 views

What elliptic curves are used by Tezos?

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