Provision key to db #564
Answered
by
mirceanis
RobertoSnap
asked this question in
Q&A
-
Hi Running am Veramo agent on a server. Need to provision the database with a certain privatekey (its currently in uint8array format). How do i create a new key (or identifier) from a certain privatekey? Here is our setup and what we are testing against https://github.com/BROKLab/auth-bot/blob/veramo/src/network/veramo.service.ts#L71 |
Beta Was this translation helpful? Give feedback.
Answered by
mirceanis
Jun 15, 2021
Replies: 1 comment 10 replies
-
Hi, here's an example of importing an Ed25519 signing key: const keyData = {
kid: 'ea75250531f6834328ac210618253288e4c54632962a9708ca82e4a399f79000',
kms: 'local',
type: <TKeyType>'Ed25519',
publicKeyHex: 'ea75250531f6834328ac210618253288e4c54632962a9708ca82e4a399f79000',
privateKeyHex: '65f341541643070564bb48d9fc10556f2dec246fa056e436a8ec1cdef8c74766ea75250531f6834328ac210618253288e4c54632962a9708ca82e4a399f79000',
}
const imported = await agent.keyManagerImport(keyData) Is this what you mean by provisioning the database with a key? |
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
RobertoSnap
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, here's an example of importing an Ed25519 signing key:
Is this what you mean by provisioning the database with a key?
If not, then please elaborate