Vanitygen for Grin

Here’s how I did it on Grin++

/* 
        *  From RFC-0010 (https://github.com/mimblewimble/grin-rfcs/blob/master/text/0010-online-transacting-via-tor.md):
        * 
        *  Although ed25519 is a different curve than used by the grin protocol, we can still use our HD wallets to 
        *  generate deterministic ed25519 public keys (and therefore Grin addresses). For account m/0, addresses will be 
        *  generated using keychain paths m/0/1/x, for account m/1, addresses will be generated using m/1/1/x, etc. To 
        *  generate addresses for a keychain path, we derive the private key in the usual way, but then blake2b hash the 
        *  derived key to get the ed25519 secret key, which can then be used to calculate the public key and address.
        * 
        */
3 Likes