pub fn create_did_peer(
input: &DidPeerCreate,
) -> Result<DIDPeerResult, DIDPeerError>Expand description
create_did_peer() wasm wrapper for DIDPeer::create_peer_did Input: reference to DidPeerCreate struct Returns: Error or String of the newly created did:peer DID
Notes: DidPeerCreate contains an array of keys and an optional array of Services These arrays are processed in order (as in element 0 is processed first, then element 1, etc) This means the key and service identifiers are auto-generated in the order they are provided i.e. #service, #service-1, #service-2 and #key-1, #key-2, #key-3 …