From cd930efb2ce60f658a1b519a9b8e8d84feb85e46 Mon Sep 17 00:00:00 2001 From: Philipp Gackstatter Date: Wed, 24 Jan 2024 15:18:39 +0100 Subject: [PATCH] Remove Ed25519 Public Key Block Issuer Key --- tips/TIP-0042/tip-0042.md | 56 ++++++++++----------------------------- 1 file changed, 14 insertions(+), 42 deletions(-) diff --git a/tips/TIP-0042/tip-0042.md b/tips/TIP-0042/tip-0042.md index 72739834b..b63cf1e72 100644 --- a/tips/TIP-0042/tip-0042.md +++ b/tips/TIP-0042/tip-0042.md @@ -194,7 +194,7 @@ locked to that account. Block Issuer Keys anyOf
- Ed25519 Public Key Block Issuer Key + Ed25519 Public Key Hash Block Issuer Key
A Block Issuer Key backed by an Ed25519 Public Key.
@@ -211,12 +211,12 @@ locked to that account. - + - + - +
Block Issuer Key Type uint8Set to value 0 to denote an Ed25519 Public Key Block Issuer Key.Set to value 0 to denote an Ed25519 Public Key Hash Block Issuer Key.
Public KeyPubKeyHash ByteArray[32]The raw bytes of the Ed25519 public key.The raw bytes of the BLAKE2b-256 hash of the corresponding Ed25519 public key.
@@ -618,7 +618,7 @@ outputs that are locked under _Account Address_ and it keeps track of controlled Key (uint8)ByteArray - A string which may only consist of ASCII characters. A leading uint8 denotes its length. + A string which may only consist of printable ASCII characters. A leading uint8 denotes its length. Value @@ -653,7 +653,7 @@ outputs that are locked under _Account Address_ and it keeps track of controlled Expiry Slot - uint64 + uint32 The slot index at which the Block Issuer Feature expires and can be removed. @@ -665,7 +665,7 @@ outputs that are locked under _Account Address_ and it keeps track of controlled Block Issuer Keys anyOf
- Ed25519 Public Key Block Issuer Key + Ed25519 Public Key Hash Block Issuer Key
A Block Issuer Key backed by an Ed25519 Public Key.
@@ -682,12 +682,12 @@ outputs that are locked under _Account Address_ and it keeps track of controlled - + - + - +
Block Issuer Key Type uint8Set to value 0 to denote an Ed25519 Public Key Block Issuer Key.Set to value 0 to denote an Ed25519 Public Key Hash Block Issuer Key.
Public KeyPubKeyHash ByteArray[32]The raw bytes of the Ed25519 public key.The raw bytes of the BLAKE2b-256 hash of the corresponding Ed25519 public key.
@@ -844,7 +844,7 @@ outputs that are locked under _Account Address_ and it keeps track of controlled Key (uint8)ByteArray - A string which may only consist of ASCII characters. A leading uint8 denotes its length. + A string which may only consist of printable ASCII characters. A leading uint8 denotes its length. Value @@ -1043,37 +1043,9 @@ creation and block issuer feature transition. ### Implicit Account Block Issuance -An implicit account can issue blocks by using the public key from which the implicit account creation address was -derived as a block issuer key. A separate block issuer key type is reserved for that, which is however never used in -transactions directly. - -
- Ed25519 Public Key Hash Block Issuer Key -
A block issuer key for issuing blocks from implicit accounts.
-
- - - - - - - - - - - - - - - - -
- Name - - Type - - Description -
Block Issuer Key Typeuint8Set to value 1 to denote an Ed25519 Public Key Hash Block Issuer Key.
PubKeyHashByteArray[32]The raw bytes of the Implicit Account Creation Address which is the BLAKE2b-256 hash of the Ed25519 public key.
+An implicit account can issue blocks by using the `PubKeyHash` of the _Implicit Account Creation Address_ itself as an +_Ed25519 Public Key Hash Block Issuer Key_. Therefore, the block's signature must contain the public key from which the +`PubKeyHash` was derived from and the signature must be computed from the corresponding private key. # Migration