mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-10 04:15:54 +00:00
ef7773daa6
Signed-off-by: Jamie Lokier <jamie@shareable.org>
21 lines
480 B
Nim
21 lines
480 B
Nim
#
|
|
# Nimbus
|
|
# (c) Copyright 2019
|
|
# Status Research & Development GmbH
|
|
#
|
|
# Licensed under either of
|
|
# Apache License, version 2.0, (LICENSE-APACHEv2)
|
|
# MIT license (LICENSE-MIT)
|
|
|
|
import tables, eth/keys
|
|
|
|
type
|
|
KeyStorage* = ref object
|
|
asymKeys*: Table[string, KeyPair]
|
|
|
|
KeyGenerationError* = object of CatchableError
|
|
|
|
proc newKeyStorage*(): KeyStorage =
|
|
new(result)
|
|
result.asymKeys = initTable[string, KeyPair]()
|