lefessan
  • Member for 2 years, 11 months
  • Last seen more than 1 year ago
Is there a way to generate a pseudo-random number inside a contract in liquidity?
11 votes

If what you mean is a non-predictable source of randomness, no, there is none. Any information that could be used for that could either be predictable by a user, or tempered by a malicious baker. You ...

View answer
How to obtain an unencrypted private key from an encrypted private key?
3 votes

You may want to read this guide. There is some Python code inside.

View answer
Garbage Collection
2 votes

If you are interested in a study on the impact of storage improvements, see here (there is also a link towards a storage-efficient tezos node).

View answer
How is the liquidity token.liq working
Accepted answer
1 votes

In Liquidity/Michelson, a program does not return a value. It returns the new storage and a list of new operations. So, the equivalent of a function returning a value is actually a program that takes ...

View answer
Language features needed for Marigold
Accepted answer
3 votes

You may want to follow this project: https://medium.com/tezos/introducing-ligo-a-new-smart-contract-language-for-tezos-233fa17f21c7 Not many answers for now, syntax apart, it looks like Liquidity or ...

View answer
When setting up a contract, what do the fields mean?
5 votes

Manager : the keyhash (tz) of the account that can spend the money on the contract, if the contract is spendable, or change the delegate Spendable : is it possible to spend the money on this account ...

View answer
Why is an active Abstention/Pass Vote needed?
Accepted answer
3 votes

The idea is that there must be a significant participation of users to show that the vote is meaningful and that people are ok with the decision. For that, Tezos has a notion of quorum (80% today). If ...

View answer
ReasonML pattern matching error on tuples
Accepted answer
4 votes

Indeed, Liquidity does not implement deep pattern-matching as in OCaml or Reason. You have to match only one level (constructor or tuple) at a time. We hope to be able to improve that in later ...

View answer
Local operations vs remote operation
2 votes

In general, there would be some logic to prioritize local operations versus remote operations. Yet, that would only be needed when a baker has both a baking slot, and the need to emit new operations ...

View answer
Contract accepting an ANY type
2 votes

If you just want to dispatch to a specified set of methods, who ses types are known, what you are looking for is the « alternative » type or sum type, where the value is (Left (Right (... )), ie a ...

View answer
How does NOW work?
Accepted answer
5 votes

There is an assumption that all Tezos nodes are synchronized, otherwise the consensus with 1-minute slots would not work. Of course, some delay is ok, but more than a few seconds might prevent a baker ...

View answer
How to use RPC to judge whether a PKH is revealed?
Accepted answer
3 votes

You should ask the manager_key of the account : either it is a key_hash (not revealed) or a public key (revealed). See this blog for an introduction to the RPCs for a basic wallet : http://www....

View answer
Why does a transaction contain a storage dump?
Accepted answer
2 votes

Actually, it is not the full storage, but only the non-big_map part. Normally, that part should not grow too much, compared to the big_map part. But indeed, it can still be expensive to repeat that ...

View answer
Smart contract for bakers
Accepted answer
2 votes

There is a lot of demand for such a contract. The problem is currently that Michelson does not expose enough instructions to deal with baking business. So the computation of rewards would be an ...

View answer
Is it recommended to be 100% delegated for a baker?
Accepted answer
6 votes

Unless you have infinite funds, you cannot prevent from being over delegated, since you cannot prevent users from delegating to you. So, you shouldn’t care too much about it, maybe only give rewards ...

View answer
When is baking rewards counted to the staking balance?
Accepted answer
7 votes

Frozen deposits are part of the staking balance (otherwise, your staking balance would decrease during baking); Frozen rewards are not part of the staking balance. They are taken into account only ...

View answer
Is tezos-node single or multi-threaded?
Accepted answer
5 votes

The current version of the Tezos node is mono-threaded. Indeed, there is work in the direction of parallelisation, it is probably better to do so through multiple processes than through multithreading,...

View answer
Is there any way to get the Tezos binaries latest version?
1 votes

For now, binaries are available through Docker: Official ones: https://hub.docker.com/r/tezos/tezos By Stove Labs: https://github.com/stove-labs/granary

View answer
How can I create unencrypted addresses?
Accepted answer
10 votes

On mainnet, here is how to do it: start by creating the key with a non-existent node (here xxx does not exist !): tezos-client -A xxx gen keys for_stackexchange It will display some error messages ...

View answer
Node does not start syncing
4 votes

It looks like an inconsistency in the database. Once a block has been validated by the node and stored in the store database, its context is supposed to be stored in the context database. It looks ...

View answer
Where can I read the changelog for the tezos-client Docker image?
2 votes

Normally, the Docker images are supposed to follow the mainnet-staging branch of the Tezos repository: https://gitlab.com/tezos/tezos/commits/mainnet-staging

View answer
How do I know my password or backup information is not being shared when creating a new wallet?
6 votes

If the key is generated on their server, you have no way to know. If the key is generated locally in your browser, you may try to monitor the network to see what the wallet sends to the server. ...

View answer
Why a reveal operation?
Accepted answer
6 votes

Ethereum way of retrieving the public key only works with some signing algorithms, ECDSA with secp256k1 in its case. It is also used by Tezos for tz2 (and P-256 for tz3), but not for tz1 which uses ...

View answer
How do rewards for revelations work?
Accepted answer
2 votes

I think the baker who generates the revelation does not earn anything (it just doesn’t lose its other rewards). It is the baker who includes the revelation that receives the reward (usually, in the ...

View answer
Is there a threshold for seed generation?
Accepted answer
1 votes

The problem is not the number of nonces revealed, but the number of bakers revealing. If only one baker reveals one or more nonces, he could try to compute the nonce so that he will receive more ...

View answer
How can I write tests for my smart contracts?
Accepted answer
11 votes

There are several test frameworks coming for Tezos. Ours (Techelson) can be used both from Michelson and from Liquidity. It should be released soon. (I will update this answer when it is released)

View answer
Generic baking error on main
Accepted answer
5 votes

The bond computation (% of tokens you need for a given number of rolls) is not exact, it depends on how many rolls are actually used for baking, and also of what happen on the network: the mean ...

View answer
Format of public key, signature and key_hash literals
Accepted answer
6 votes

There are some Python code to do that in this blog and a comment posted by Alain: http://www.ocamlpro.com/2018/11/21/an-introduction-to-tezos-rpcs-signing-operations/

View answer
What is the difference between implicit vs originated accounts?
11 votes

Implicit accounts are accounts created from a public/private key pair. They start with tz{1,2,3}. They are always spendable, but not delegatable. They can be used for baking. They are created on the ...

View answer
How do I remove the private mode setting from my node? My node is not connecting to peer
6 votes

If you want to remain in private-mode, you must provide an argument --peer node:port when starting your node, or edit the config.json file of the node to add such peers (which is better, as it will be ...

View answer