Encoded payment requests

Had a little idea for a payment request feature that wallet clients could implement. You could send a specific amount of raw with ascii to decimal encoding for instructions. Basic example, say I want to request 1.53Ñ from someone.

We start out by encoding the send message. SEND converted to decimal is 83 69 78 68

Next, we put the amount. Since every nano is 10^30 raw, we can represent 1.53Ñ as 153EE28 raw in scientific notation. Converting the EE to decimal, we get 69 69. Combining everything together, SEND153EE28 becomes 83697868153696928 raw. In nano, that quantity is 0.00000000000083697868153696928, so it’s a negligible amount per request unless the payment has some crazy amount of digits in it.

Wallet clients could automatically prompt a send of 1.53Ñ to the corresponding address. To prevent scams, clients could have a setting for it to only process payment requests from specific accounts.

Would love to hear any feedback on the idea.

Posted May 25, 2021, 11:44 PM UTC

1913
Loading comments…