diff --git a/docs/_sidebar.md b/docs/_sidebar.md index b95b70e..e02080e 100644 --- a/docs/_sidebar.md +++ b/docs/_sidebar.md @@ -3,15 +3,15 @@ - [Configuration](configuration.md) - Reference - - API + - [API](api.md) - [Service provider data object](serviceproviderdataobject.md) - Concepts - [DOIP](doip.md) - - [Cryptographic keys](#) - - [Proofs](#) - - [Claims](#) - - [Service providers](#) + - [Cryptographic keys](cryptographickeys.md) + - [Proofs](proofs.md) + - [Claims](claims.nd) + - [Service providers](serviceproviders,md) - Service providers - [Liberapay](serviceproviders/liberapay.md) diff --git a/docs/api.md b/docs/api.md new file mode 100644 index 0000000..fc7d158 --- /dev/null +++ b/docs/api.md @@ -0,0 +1,25 @@ +# API + +## verify + +*(async)* doip.verify(uri, [fingerprint], [opts]) + +Verifies the identity behind the provided **uri** using the **fingerprint**. + +**Parameters** + +| Name | Mandatory | Type | Description | +|-------------|-----------|--------|----------------------------------| +| uri | true | string | the URI to an identity to verify | +| fingerprint | false | string | the fingerprint of the claim | +| opts | false | object | options (see below) | + +**Options** + +| Name | Default | Type | Description | +|-------------|-----------|--------|----------------------------------| +| uri | true | string | the URI to an identity to verify | +| fingerprint | false | string | the fingerprint of the claim | +| opts | false | object | options | + +**Returns** diff --git a/docs/claims.md b/docs/claims.md new file mode 100644 index 0000000..34f417c --- /dev/null +++ b/docs/claims.md @@ -0,0 +1 @@ +# Claims diff --git a/docs/configuration.md b/docs/configuration.md new file mode 100644 index 0000000..a025a48 --- /dev/null +++ b/docs/configuration.md @@ -0,0 +1 @@ +# Configuration diff --git a/docs/cryptographickeys.md b/docs/cryptographickeys.md new file mode 100644 index 0000000..dfa4eaf --- /dev/null +++ b/docs/cryptographickeys.md @@ -0,0 +1 @@ +# Cryptographic keys diff --git a/docs/proofs.md b/docs/proofs.md new file mode 100644 index 0000000..5c4267d --- /dev/null +++ b/docs/proofs.md @@ -0,0 +1 @@ +# Proofs diff --git a/docs/serviceproviders.md b/docs/serviceproviders.md new file mode 100644 index 0000000..a66ad50 --- /dev/null +++ b/docs/serviceproviders.md @@ -0,0 +1 @@ +# Service providers