refactor: signRegistryEntry does not need to be async
This commit is contained in:
parent
bda8007cdf
commit
ade87a9934
|
@ -173,7 +173,7 @@ export class RegistryService {
|
||||||
await this.set(sre);
|
await this.set(sre);
|
||||||
}
|
}
|
||||||
|
|
||||||
async signRegistryEntry({
|
signRegistryEntry({
|
||||||
kp,
|
kp,
|
||||||
data,
|
data,
|
||||||
revision,
|
revision,
|
||||||
|
@ -181,7 +181,7 @@ export class RegistryService {
|
||||||
kp: KeyPairEd25519;
|
kp: KeyPairEd25519;
|
||||||
data: Uint8Array;
|
data: Uint8Array;
|
||||||
revision: number;
|
revision: number;
|
||||||
}): Promise<SignedRegistryEntry> {
|
}): SignedRegistryEntry {
|
||||||
const list = new Uint8Array([
|
const list = new Uint8Array([
|
||||||
recordTypeRegistryEntry,
|
recordTypeRegistryEntry,
|
||||||
...encodeEndian(revision, 8),
|
...encodeEndian(revision, 8),
|
||||||
|
|
Loading…
Reference in New Issue