Skip to content

Instantly share code, notes, and snippets.

View glamperd's full-sized avatar

Geoff Lamperd glamperd

  • Stonebell Consulting Ltd
  • South-east Queensland
  • 13:56 (UTC +10:00)
  • X @glamperd
View GitHub Profile
export async function createWallet(web3) {
console.log("Creating new random wallet");
const mnemonic = bip39.generateMnemonic()
const wallet = await hdkey.fromMasterSeed(mnemonic).getWallet()
// const wallet = await web3.eth.accounts.create()
localStorage.setItem("delegateSigner", wallet.getAddressString())
localStorage.setItem("mnemonic", mnemonic);
localStorage.setItem("privateKey", wallet.getPrivateKeyString());
### Keybase proof
I hereby claim:
* I am dalaillaama on github.
* I am glamperd (https://keybase.io/glamperd) on keybase.
* I have a public key ASBop5XRBOUo3SpqsD4VEBe1nZK17eHsX5obDzX_NdzE1Ao
To claim this, I am signing this object:
@glamperd
glamperd / keybase.md
Created May 23, 2020 04:42
keybase verify

Keybase proof

I hereby claim:

  • I am glamperd on github.
  • I am glamperd (https://keybase.io/glamperd) on keybase.
  • I have a public key ASBop5XRBOUo3SpqsD4VEBe1nZK17eHsX5obDzX_NdzE1Ao

To claim this, I am signing this object:

@glamperd
glamperd / contribution.txt
Last active January 7, 2021 04:44
zkparty phase2 tusted setup MPC contribution summary
{"ceremony":"clr.fund circuit #1","ceremonyId":"7YxPndZM3bPWscQ44cOp","time":"2021-01-07T04:44:28.456Z","contributionNumber":18,"hash":"0x09c22ddf7ffc80239d6ff059b5188b754a88c50f2756e220d5036d9c82a744ea418b18536fdad477d8429f80df05f38a96612d39942838ba7018f566da294c44"}
@glamperd
glamperd / contribution.txt
Created January 7, 2021 05:19
zkparty phase2 tusted setup MPC contribution summary
{"ceremony":"clr.fund circuit #1","ceremonyId":"7YxPndZM3bPWscQ44cOp","time":"2021-01-07T05:19:52.062Z","contributionNumber":21,"hash":"0xd145bd74c16f1e7edc6c5e2a68b87945bc3e30fba11010b4621c7c383dc69479dd7082ce4d1a298074de50c5a15e3dda64c2654a4cf293f404e37b2a29e7841b"}
@glamperd
glamperd / contribution.txt
Created January 7, 2021 05:40
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "clr.fund circuit #1",
"ceremonyId": "7YxPndZM3bPWscQ44cOp",
"time": "2021-01-07T05:40:06.245Z",
"contributionNumber": 22,
"hash": "0xcd076d6df24e4f73c57b643c5d65cb436bf9d98cbb6567a81901b0f8a58889807d9893ec35529335bc5a81c9f4db3900ce855d9ed8f8bf2eaa3057f524d2ebcf"
}
@glamperd
glamperd / contribution.txt
Created January 7, 2021 06:10
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "clr.fund circuit #1",
"ceremonyId": "7YxPndZM3bPWscQ44cOp",
"time": "2021-01-07T06:10:46.683Z",
"contributionNumber": 23,
"hash": "0x96d449df33dda8d9d6baa86625bf4b0de8aa651d26d931e2a37cab728487b5c24dd77d70be62e525b69be286030dd274714b84dcf224812010e0b3c7127c47f1"
}
@glamperd
glamperd / contribution.txt
Created January 18, 2021 05:18
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_1_1",
"ceremonyId": "9HTUnepINy115FBtTdVc",
"time": "2021-01-18T05:18:36.565Z",
"contributionNumber": 1,
"hash": "0x679c8853e7b11e3caaeb16931ecafd202b6559c3f057ae24108b5f6207cc081293dbcfcc6c3ee7a8a0c5cd0d0044bae265902746453d422976d6deb8e87eea60"
}
@glamperd
glamperd / contribution.txt
Created January 20, 2021 09:04
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_3_1",
"ceremonyId": "DF15rOYBIV4P0foXlpCL",
"time": "2021-01-20T09:04:20.274Z",
"contributionNumber": 1,
"hash": "0xeceed33f52774003867843a6ee5d0472e3a52b812009e8b93a5e04b36cefaef24863680eb3c29bba714369fea716843858644b40af3536d6cd435994fdc37841"
}
@glamperd
glamperd / contribution.txt
Created January 20, 2021 09:06
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_3_3",
"ceremonyId": "4KJfxE9WKYAruT64zvlI",
"time": "2021-01-20T09:06:28.417Z",
"contributionNumber": 1,
"hash": "0xc9a56a89c325375549077a320e9e2c499a4db1bbe315d058189289c08a121533b226c02eb973567b53b970141b5dfa00ebd1fe141bb5e36220b25e5b4aa30f57"
}