Skip to content

Provision key to db #564

Answered by mirceanis
RobertoSnap asked this question in Q&A
Jun 15, 2021 · 1 comments · 10 replies
Discussion options

You must be logged in to vote

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?
If not, then please elaborate

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@RobertoSnap
Comment options

@mirceanis
Comment options

@RobertoSnap
Comment options

@RobertoSnap
Comment options

@mirceanis
Comment options

Answer selected by RobertoSnap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants