Trustless Outsourced Vanity Address Generation

Vanity Address

Previously, we have shown a novel and private way to purchase Bitcoin vanity addresses, using Zero-Knowledge Key-Statement Proof. In practice, it has one drawback: after the buyer verifies the proof in step 7, he can abort the exchange protocol and the seller wastes resources to find an answer but does not get paid.

To overcome this drawback, we conduct the exchange entirely on chain using a smart contract. It only pays out if a private key is provided such as the derived/combined public key/address meets the vanity pattern. Full code is shown below.

VanityAddr Contract

To compute point addition (Line 16) and multiplication (Line 13) efficiently, we leverage the same technique as before. After we have the combined public key, we validate its corresponding address meets the predefined vanity pattern at Line 19.

Extension

We have only showed how to verify the derived address has certain prefix. But it is straightforward to extend it to have the address or the public key meet any arbitrary requirement.

--

--

--

sCrypt Inc (https://scrypt.io) is a company with a mission to provide integrated on-chain smart contracting solutions using the original BitCoin Protocol on BSV

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

EQIFI AMA Q&A

Intro to Crypto — the basics of trading cryptocurrencies

The KFC Bitcoin Bucket

Why Exchanges Delist Coins

Connecting the Universe through Inclusion

What challenges will Bitcoin have to overcome?

IOI is Joining the ChainPort Ecosystem and Getting Ported to Binance Smart Chain

Dooby Finance AMA Announcement

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
sCrypt

sCrypt

sCrypt Inc (https://scrypt.io) is a company with a mission to provide integrated on-chain smart contracting solutions using the original BitCoin Protocol on BSV

More from Medium

New Era Defined by the Idea of Decentralization

Web3, NFT’s and DeFi are a sham without a blockchain scalable at L1

MEV: EXPLAIN LIKE I AM 5 — Xord

Pay.Party: A tool for democratically allocating funds between team members