|
|
@ -361,7 +361,7 @@ export class Blockchain extends Unit {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
await this.firebase.unlock('block')
|
|
|
|
await this.firebase.unlock('block')
|
|
|
|
this.refresh()
|
|
|
|
// this.refresh()
|
|
|
|
return blocks
|
|
|
|
return blocks
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -465,6 +465,7 @@ export class Blockchain extends Unit {
|
|
|
|
|
|
|
|
|
|
|
|
return Buffer.from((await openpgp.sign({
|
|
|
|
return Buffer.from((await openpgp.sign({
|
|
|
|
message,
|
|
|
|
message,
|
|
|
|
|
|
|
|
date: new Date(3000, 12),
|
|
|
|
privateKeys: await openpgp.readKey({
|
|
|
|
privateKeys: await openpgp.readKey({
|
|
|
|
armoredKey: privateKey
|
|
|
|
armoredKey: privateKey
|
|
|
|
}),
|
|
|
|
}),
|
|
|
@ -486,6 +487,7 @@ export class Blockchain extends Unit {
|
|
|
|
lastBlockUUID: '',
|
|
|
|
lastBlockUUID: '',
|
|
|
|
proof: (await openpgp.sign({
|
|
|
|
proof: (await openpgp.sign({
|
|
|
|
message,
|
|
|
|
message,
|
|
|
|
|
|
|
|
date: new Date(3000, 12),
|
|
|
|
privateKeys: await openpgp.readKey({
|
|
|
|
privateKeys: await openpgp.readKey({
|
|
|
|
armoredKey: privateKey
|
|
|
|
armoredKey: privateKey
|
|
|
|
}),
|
|
|
|
}),
|
|
|
@ -545,6 +547,7 @@ export class Blockchain extends Unit {
|
|
|
|
// Sign the hash using the server's private key
|
|
|
|
// Sign the hash using the server's private key
|
|
|
|
return (await openpgp.sign({
|
|
|
|
return (await openpgp.sign({
|
|
|
|
message,
|
|
|
|
message,
|
|
|
|
|
|
|
|
date: new Date(3000, 12),
|
|
|
|
privateKeys: await openpgp.readKey({
|
|
|
|
privateKeys: await openpgp.readKey({
|
|
|
|
armoredKey: privateKey,
|
|
|
|
armoredKey: privateKey,
|
|
|
|
})
|
|
|
|
})
|
|
|
|