stellar / slingshot

A new blockchain architecture under active development, with a strong focus on scalability, privacy and safety
Apache License 2.0
411 stars 60 forks source link

address: add expiration time #480

Open oleganza opened 4 years ago

oleganza commented 4 years ago

We should probably add a low-resolution expiration time to the addresses (introduced in #472): for instance, a 16-bit (2-byte) count of days starting from Jan 1, 2020. This gives 1-day resolution between years 2020 and 2199. The compatible software will automatically refuse to send money to addresses that expired allowing the recipients to avoid watching for old addresses and lower their storage requirements. 16 bits adds 3 characters to bech32 encoding of the address (because existing 64 bytes takes 102.4 5-bit characters which is rounded to 103 in present format).