Skip to content

Commit f19b80b

Browse files
author
tcsenpai
committed
Remove dead auth_ok signing path
1 parent e45a4a9 commit f19b80b

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

.mycelium/mycelium.db

0 Bytes
Binary file not shown.

src/libs/network/manageAuth.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export type AuthMessage = [
1212

1313
export async function manageAuth(data: any): Promise<RPCResponse> {
1414
// REVIEW Auth reply listener should not add a client to the peerlist if is read only
15-
const identity = await Cryptography.load("./.demos_identity")
1615
log.info("SERVER", "Received auth reply")
1716
// Unpack the data for readability
1817
if (data !== "readonly") {
@@ -53,8 +52,6 @@ export async function manageAuth(data: any): Promise<RPCResponse> {
5352
} else {
5453
log.info("SERVER", "Client is read only: not asking for authentication")
5554
}
56-
// And we reply ok with our signature too
57-
const signature = Cryptography.sign("auth_ok", identity.privateKey as any)
5855
return {
5956
result: 200,
6057
response: "OK",

0 commit comments

Comments
 (0)