Skip to content
Snippets Groups Projects
Commit 1d7bc3f9 authored by Yordan Kinkov's avatar Yordan Kinkov
Browse files

Merge branch 'add-publikKeysForDIDs-policy' into 'main'

Add publicKeysForDIDs policy

See merge request !18
parents 4565607a bbf93ffc
No related branches found
No related tags found
1 merge request!18Add publicKeysForDIDs policy
Pipeline #52645 passed with stage
in 28 seconds
{
"dids": [
"did:key:z6MkpxjNepTaD1xo49dEbbW36FguWgsiToxNdhR8YJMnFQoJ",
"did:key:z6Mkfriq1MqLBoPWecGoDLjguo1sB9brj6wT3qZ5BxkKpuP6"
]
}
\ No newline at end of file
package example.publicKeysForDIDs
publicKeys := getKeys(input)
getKeys(i) = res {
doc1 = did.resolve(data.dids[0])
doc2 = did.resolve(data.dids[1])
res := array.concat([doc1.didDocument.verificationMethod[0].publicKeyMultibase], [doc2.didDocument.verificationMethod[0].publicKeyMultibase])
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment