account creation working

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-05-21 21:07:33 -07:00
parent 2920325639
commit e50c8f0dbc
6 changed files with 115 additions and 4 deletions

View File

@@ -22,6 +22,10 @@ class CreateAccountModel: ObservableObject {
return real_name
}
var keypair: Keypair {
return Keypair(pubkey: self.pubkey, privkey: self.privkey)
}
init() {
let keypair = generate_new_keypair()
self.pubkey = keypair.pubkey