Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating dev after merging last PR #79

Merged
merged 6 commits into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .jsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"tags": {
"allowUnknownTags": true,
"dictionaries": ["jsdoc"]
},
"source": {
"include": ["src", "package.json", "README.md"],
"includePattern": ".ts$",
"excludePattern": "(node_modules/|docs|dist|examples|test)"
},
"plugins": [
"plugins/markdown"
],
"templates": {
"cleverLinks": false,
"monospaceLinks": true,
"useLongnameInNav": false,
"showInheritedInNav": true
},
"opts": {
"destination": "./docs/",
"encoding": "utf8",
"private": true,
"recurse": true,
"template": "./node_modules/minami"
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The code is built using Typescript and running code locally requires a Mac or Li

Account Creation Workflow

![Account Creation](/docs/diagrams/account-creation-workflow.png)
![Account Creation](/diagrams/account-creation-workflow.png)


![Account Creation Webpage](/docs/diagrams/account-creation-webpage-workflow.png)
![Account Creation Webpage](/diagrams/account-creation-webpage-workflow.png)
23 changes: 23 additions & 0 deletions diagrams/account-creation-webpage-workflow.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
sequenceDiagram
actor u as User
participant a as Web Page App
participant s as Signify
participant c as Cloud Agent
u ->> a: Create Account
a ->>+ s: Generate Pub/Pri Keys
s ->>- a: Return new Pub/Pri Keypair
a ->>+ c: Request ICP Event Creation with Keys
note over s,c: This call can not be secured
note right of c: Creates ICP Event
c ->>- a: Return ICP event
a ->>+ s: Sign ICP Event
s ->>- a: Return Signed Event
a ->>+ c: Create Account with Signed ICP Event
note over s,c: Call Signed by new Keys
note right of c: Parses and Saves ICP
note right of c: Create Account with new AID
c ->>- a: Return New Account KeyState
a ->>+ s: Save Key Information
s ->>+ c: Save Key Information
c ->>- s: Key Information Saved
a ->> u: Return New Account Information
18 changes: 18 additions & 0 deletions diagrams/account-creation-workflow.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
sequenceDiagram
actor u as User
participant s as Signify
participant c as Cloud Agent
u ->> s: Create Account
s ->> s: Generate Pub/Pri Keys
s ->>+ c: Request ICP Event Creation with Keys
note over s,c: This call can not be secured
note right of c: Creates ICP Event
c ->>- s: Return ICP event
s ->>+ c: Create Account with Signed ICP Event
note over s,c: Call Signed by new Keys
note right of c: Parses and Saves ICP
note right of c: Create Account with new AID
c ->>- s: Return New Account KeyState
s ->>+ c: Save Key Information
c ->>- s: Key Information Saved
s ->> u: Return New Account Information
1 change: 1 addition & 0 deletions docs/.nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
43 changes: 43 additions & 0 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
:root {
--light-hl-0: #795E26;
--dark-hl-0: #DCDCAA;
--light-hl-1: #000000;
--dark-hl-1: #D4D4D4;
--light-hl-2: #A31515;
--dark-hl-2: #CE9178;
--light-code-background: #FFFFFF;
--dark-code-background: #1E1E1E;
}

@media (prefers-color-scheme: light) { :root {
--hl-0: var(--light-hl-0);
--hl-1: var(--light-hl-1);
--hl-2: var(--light-hl-2);
--code-background: var(--light-code-background);
} }

@media (prefers-color-scheme: dark) { :root {
--hl-0: var(--dark-hl-0);
--hl-1: var(--dark-hl-1);
--hl-2: var(--dark-hl-2);
--code-background: var(--dark-code-background);
} }

:root[data-theme='light'] {
--hl-0: var(--light-hl-0);
--hl-1: var(--light-hl-1);
--hl-2: var(--light-hl-2);
--code-background: var(--light-code-background);
}

:root[data-theme='dark'] {
--hl-0: var(--dark-hl-0);
--hl-1: var(--dark-hl-1);
--hl-2: var(--dark-hl-2);
--code-background: var(--dark-code-background);
}

.hl-0 { color: var(--hl-0); }
.hl-1 { color: var(--hl-1); }
.hl-2 { color: var(--hl-2); }
pre, code { background: var(--code-background); }
58 changes: 58 additions & 0 deletions docs/assets/main.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/assets/search.js

Large diffs are not rendered by default.

Loading
Loading