トランザクションを使うようにしたり
This commit is contained in:
parent
4198246351
commit
2ff3069d23
12 changed files with 117 additions and 67 deletions
|
|
@ -22,4 +22,12 @@ export class UserKeypair {
|
|||
length: 4096,
|
||||
})
|
||||
public privateKey: string;
|
||||
|
||||
constructor(data: Partial<UserKeypair>) {
|
||||
if (data == null) return;
|
||||
|
||||
for (const [k, v] of Object.entries(data)) {
|
||||
(this as any)[k] = v;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue