package tezos-protocol-015-PtLimaPt

  1. Overview
  2. Docs
Tezos/Protocol: economic-protocol definition

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-16.0.tar.gz
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b

doc/tezos-protocol-015-PtLimaPt.raw/Tezos_raw_protocol_015_PtLimaPt/Contract_manager_storage/index.html

Module Tezos_raw_protocol_015_PtLimaPt.Contract_manager_storageSource

init ctxt contract manager associates manager to contract. This function is undefined if contract has already a manager associated to it.

check_publick_key pk pkh asserts that the provided pk is consistent with the expected public key hash pkh, otherwise fails with an Inconsistent_hash error.

reveal_manager_key ?check_consistency ctxt manager pk reveals the public key pk for a given unrevealed manager. If the optional ?check_consistency flag is set (and it is set by default), it will re-check the same consistency checks than check_public_key above, otherwise it will assume manager is indeed the hash of pk. It is expected to fail with Previously_revealed_key contract if manager was already revealed, and with Inconsistent_hash if the (unrevealed) manager doesn't match the expected hash of the implicit contract associated to pk.

get_manager_key ?error ctxt pkh returns the revealed manager key of the contract represented by pkh. When error is not provided this function fails with "get_manager_key" error if pkh does not have a manager, and with Unrevealed_manager_key error if the manager has not revealed its key. When error is provided, the function fails with the provided error in both cases.

OCaml

Innovation. Community. Security.