Questions tagged [cryptography]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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?
mathematicsenthusiast's user avatar
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 ...
Davis Sawali's user avatar
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'...
achille1017's user avatar
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....
Hexa's user avatar
  • 61
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 ?
Hexa's user avatar
  • 61
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/...
Shubham Chadokar's user avatar
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 ...
itamar reif's user avatar
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 ...
keefertaylor's user avatar
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 ...
keefertaylor's user avatar
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', ...
Daly's user avatar
  • 442
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", ...
Daly's user avatar
  • 442
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.
intosKai's user avatar
  • 151
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.
intosKai's user avatar
  • 151
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 ...
Önder Gürcan's user avatar
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 ...
Groxan's user avatar
  • 2,701
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 ...
Simon B.Robert's user avatar
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/...
Rocco Musolino's user avatar
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, ...
Nemo's user avatar
  • 736
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 ...
James Baker's user avatar
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?
cousinit's user avatar
  • 1,999
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 ...
joschua011's user avatar