Skip to content
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
169 changes: 128 additions & 41 deletions nbs/00_core.ipynb

Large diffs are not rendered by default.

17 changes: 16 additions & 1 deletion nbs/01_crypto.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "20c64935",
"metadata": {},
"source": [
"# crypto\n",
Expand All @@ -12,6 +13,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "13df2d76",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -21,6 +23,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b49deaff",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -31,6 +34,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "394cf179",
"metadata": {},
"outputs": [
{
Expand All @@ -52,6 +56,7 @@
},
{
"cell_type": "markdown",
"id": "d6c0b6de",
"metadata": {},
"source": [
"Generating a private & public key pair from scratch."
Expand All @@ -60,6 +65,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "70704956",
"metadata": {},
"outputs": [
{
Expand All @@ -81,6 +87,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "a3f507fa",
"metadata": {},
"outputs": [
{
Expand All @@ -103,6 +110,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "d6a41091",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -116,6 +124,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "ce63c4f3",
"metadata": {},
"outputs": [
{
Expand All @@ -136,6 +145,7 @@
},
{
"cell_type": "markdown",
"id": "ad92b030",
"metadata": {},
"source": [
"Generating a `pk` instance and a public key from a private key in hex.\n"
Expand All @@ -144,6 +154,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "df7cc7b3",
"metadata": {},
"outputs": [
{
Expand All @@ -166,6 +177,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "e6146c91",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -182,6 +194,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "9abd3af2",
"metadata": {},
"outputs": [
{
Expand All @@ -202,12 +215,14 @@
},
{
"cell_type": "markdown",
"id": "e4df2fbe",
"metadata": {},
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "f5df6b3e",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -224,5 +239,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 4
"nbformat_minor": 5
}
25 changes: 24 additions & 1 deletion nbs/02_auth.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "f9a84312",
"metadata": {},
"source": [
"# auth\n",
Expand All @@ -12,6 +13,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "8c4385be",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -21,6 +23,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "1b012888",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -31,6 +34,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "92558fbd",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -44,6 +48,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "5461f789",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -60,6 +65,7 @@
},
{
"cell_type": "markdown",
"id": "008c47bc",
"metadata": {},
"source": [
"## Authentication flow\n",
Expand All @@ -78,6 +84,7 @@
},
{
"cell_type": "markdown",
"id": "ae04b799",
"metadata": {},
"source": [
"### Get challenge"
Expand All @@ -86,6 +93,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "e4fc78dc",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -95,6 +103,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "299c3b8c",
"metadata": {},
"outputs": [
{
Expand All @@ -118,6 +127,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "232356bd",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -139,6 +149,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "24fd507f",
"metadata": {},
"outputs": [
{
Expand All @@ -160,6 +171,7 @@
},
{
"cell_type": "markdown",
"id": "7ef1e0f9",
"metadata": {},
"source": [
"### Sign challenge\n",
Expand All @@ -170,6 +182,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4ebdc30e",
"metadata": {},
"outputs": [
{
Expand All @@ -191,6 +204,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "fb59ba1b",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -204,6 +218,7 @@
},
{
"cell_type": "markdown",
"id": "c6154a48",
"metadata": {},
"source": [
"### Submit challenge"
Expand All @@ -212,6 +227,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "eb524ebf",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -239,6 +255,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "e5f6db60",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -260,13 +277,15 @@
},
{
"cell_type": "markdown",
"id": "9c2170a3",
"metadata": {},
"source": [
"Challenges can be used only once."
]
},
{
"cell_type": "markdown",
"id": "2ddd174e",
"metadata": {},
"source": [
"### Authenticate\n",
Expand All @@ -277,6 +296,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "61136fdb",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -294,6 +314,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "0ceb6709",
"metadata": {},
"outputs": [
{
Expand All @@ -315,6 +336,7 @@
},
{
"cell_type": "markdown",
"id": "691d3a73",
"metadata": {},
"source": [
"### Linking an email to an Agent\n",
Expand All @@ -327,6 +349,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "a2e21cde",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -350,5 +373,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 5
}
Loading