Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Table of Contents | ||
---|---|---|
|
...
- versioned
- magic number - to make sure it refers to REV and not other coins
- checksum - to make sure that the whole address can be verified
- compact
- human-readable - Base58 is recommended for avoiding human copying errors
Algorithm
Python pseudocode for converting a Public key into REV Address:
public_key_bytes = codecs.decode(public_key, ‘hex’)
keccak_hash = keccak.new(digest_bits=256)
keccak_hash.update(public_key_bytes)
keccak_digest = keccak_hash.hexdigest()
# Take the last 20 bytes
wallet_len = 40
(TODO ADD the remain steps per our decision Polland 5/8/19)
rev-address = prefix + payload + checksum
payload = base58(hash(public-key))
checksum = base58(take(4, hash(prefix + payload)))
prefix = arbitrary ASCII prefix. We can choose here any string we want. Example: "rev", "revtest" etc
The hash algorithm used is Blake2b
...