IWDidManager
This framework is written with Objective-C
Constructor
initWithName
Description
Specify a name to reset the object.
DID Manager has to specify who manages Public DID as well as Private DID.
Type
Parameter
Description
NSString
name
Name of the DID Document
DID_TYPE
type
Public DID or Private DID
Return Value
Resetted IWDidManager object
File
initWithName
Description
Gets the name of the DID Document
Can specify the type of DID to get
Type
Parameter
Description
DID_TYPE
type
Public DID or Private DID
Return Value
Name NSArray of the Document
didExistsInLocal
Description
Checks if the DID Document is stored in locally.
Return Value
The value of DID Document existence is in BOOL value. If exists
YES
otherwiseNO
Save
saveDids
Description
FileWrite the DID Document in JSON format
Type
Parameter
Description
NSString
dids
DID Document String in JSON format
Return Value
The value of DID Document saving is in BOOL value. If succeeds
YES
otherwise,No
Read
makeRequestDIDsRead
Description
Read the DID Document stored Locally.
Return Value
The DID Document String in JSON format that has been read
getDidDocumentDataFromFile
Description
Read Locally stored DID Document as type object format of IWDidDcoumentData
Return Value
The object of IWDidDcoumentData that has been read
Delete
deleteDidFile
Description
Deletes the DID Document file stored Locally.
DID
genDid
Description
Generates the DID String that suits the DID format.
Return Value
a String which starts with
did:omn
genDidWithPrefix
Description
Generates DID by adding Prefix to a String which starts with
did:omn
Parameters
Type
Parameter
Description
NSString
prefix
A word designated to specific DID
Return Value
A String value that starts with
did:omn:
and has appended Prefixexample)
did:omn:prefix:zg2op1hgcnl5
genDidForPairwiseDid
Description
Generates DID String that suits the Private DID format
Return Value
did:omn:agent1
로 시작하는 StringA String that starts with
did:omn:agentl
getDid
Description
Gets the DID from the stored DID Document.
Return Value
DID String
DID Document < Basic >
makeRequestDIDsCreateWithDid
Description
Creates DID Document String of JSON type to register on the blockchain.
Parameters
Type
Name
Description
NSString
did
User's DID to be used
NSArray
of NSString
keyIds
KeyID Array that is registered in the keyManager object to be used for authentication
IWKeyManager
keyManager
keyManager object with unlock status
Return Value
DID Document String of JSON format that has no Proof
Refer to: makeProofForDids
makeRequestDIDsAddForKeyId
Description
Create the DID Document String in JSON type in order to register on the blockchain after adding keyID to the DID Document
Parameters
Type
Name
Description
NSString
keyId
keyID to add
IWKeyManager
keyManager
keyManager object with unlock status
Return Value
The DID Document String in JSON format that has no Proof
Refer to: makeProofForDids
makeRequestDIDsDeleteForKeyId
Description
Create the DID Document String in JSON type in order to register on the blockchain after deleting keyID to the Document
Parameters
Type
Name
Description
NSString
keyId
KeyID to delete
Return Value
The DID Document String in JSON format that has no Proof
Refer to : makeProofForDids
DID Document < Advanced >
makeRequestDIDsCreateWithDid(Advance)
Description
Creates the DID Document String in JSON type to register on the blockchain
Parameters
Type
Name
Description
NSString
did
User's DID to be used
NSArray
of NSString
aKeyIds
KeyID Array that is registered in the keyManager object to be used for authentication
NSArray
of NSString
pKeyIds
KeyID Array that is registered in the keyManager object to be used for public key
IWKeyManager
keyManager
keyManager object in unlocked status
Return Value
The DID Document String in JSON format that has no Proof
Refer to : makeProofForDids
DID Assertion
makeDIDAssertionWithType
Description
Creates a String in JSON format for using DID Auth
Parameters
Type
Name
Description
DID_ASSERTION_TYPE
type
Assertion Type.
Currently, only the default
type is available
NSString
signKeyId
KeyID alias that is registered in the keyManager object to be used for signature
NSString
nonce
Unpredictable String (random value)
IWKeyManager
keyManager
keyManager object in unlocked status
Return Value
The DID Auth String of JSON format that has Proof
DID_ASSERTION_TYPE
Description
DID assertion type. Currently, only
DID_ASSERTION_TYPE_DEFAULT
type is available to use
makeDIDRevokeAssertion
Description
Creates the DID document String in JSON format that has Proof to register on the blockchain
Parameters
Type
Name
Description
IWRevokeElement
didRevoke
Revoke object
NSString
signKeyId
key alias to be used on signature
NSString
nonce
Unpredictable String (random value)
IWKeyManager
keyManager
keyManager object in unlocked status
Return Value
The DID Auth String in JSON format that has Proof
Refer to : IWRevokeElement
Class
Proof
makeProofForDids
Description
Creates the DID Document String in JSON format with Proof in order to register on the blockchain
Parameters
Type
Name
Description
NSString
dids
The DID Document String in JSON format
NSString
did
DID used when signing
NSString
nonce
Unpredictable String (random value)
NSString
signKeyId
Key alias to be used on signature
IWKeyManager
keyManager
keyManager object in unlocked status
Return Value
The DID Document String in JSON format that has Proof
Last updated