Skip to content

Commit

Permalink
Create did.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 24, 2024
1 parent 6947b62 commit 5f0bdc9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/decentralized_identity/did.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { uPort } from 'uport-react-native';

const did = {
createIdentity: () => {
const identity = uPort.createIdentity();
return identity;
},

authenticate: (identity) => {
const authentication = uPort.authenticate(identity);
return authentication;
},
};

export default did;

0 comments on commit 5f0bdc9

Please sign in to comment.