-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
382 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<meta name="viewport" content="width=device-width, minimum-scale=1.0"> | ||
<title>Nostr Event Time Stamping</title> | ||
|
||
<meta name="description" content="NIP-03 Timestamping of nostr events"> | ||
|
||
|
||
<link rel="icon" href="/favicon.ico" type="image/x-icon"> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,400i,500,500i,700,700i|Noto+Sans:400,400i,700,700i|Source+Code+Pro&subset=latin-ext"> | ||
<link rel="stylesheet" href="/doks-theme/assets/css/style.css"> | ||
|
||
</head> | ||
<body class="blue" data-spy="scroll" data-target=".js-scrollspy"> | ||
|
||
<div class="offcanvas visible-xs"> | ||
<ul class="offcanvas__nav"> | ||
|
||
<li><a href="/">Home</a></li> | ||
|
||
<li><a href="https://github.com/nostr-protocol/nips/blob/vending-machine/90.md">NIP-90</a></li> | ||
|
||
</ul><!-- /.offcanvas__nav --> | ||
</div><!-- /.offcanvas --> | ||
|
||
|
||
|
||
<header class="site-header"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-xs-12"> | ||
|
||
<a href="/" class="site-header__logo">Data Vending Machine</a> | ||
|
||
|
||
<ul class="site-header__nav hidden-xs"> | ||
|
||
<li><a href="/">Home</a></li> | ||
|
||
<li><a href="https://github.com/nostr-protocol/nips/blob/vending-machine/90.md">NIP-90</a></li> | ||
|
||
</ul><!-- /.site-header__nav --> | ||
<button class="offcanvas-toggle visible-xs"> | ||
<span></span> | ||
<span></span> | ||
<span></span> | ||
</button><!-- /.offcanvas-toggle --> | ||
|
||
</div><!-- /.col --> | ||
</div><!-- /.row --> | ||
</div><!-- /.container --> | ||
</header><!-- /.site-header --> | ||
|
||
|
||
<div class="hero-subheader"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-7"> | ||
<div class="align-container" data-mh> | ||
<div class="align-inner"> | ||
|
||
<h1 class="hero-subheader__title">Nostr Event Time Stamping</h1> | ||
|
||
|
||
<p class="hero-subheader__desc">NIP-03 Timestamping of nostr events</p> | ||
|
||
|
||
</div><!-- /.align-inner --> | ||
</div><!-- /.align-container --> | ||
</div><!-- /.col --> | ||
|
||
</div><!-- /.row --> | ||
</div><!-- /.container --> | ||
</div><!-- /.hero-subheader --> | ||
<div class="section"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-7"> | ||
<div class="content"> | ||
<h1 id="input">Input</h1> | ||
|
||
<p>Event ID to be stamped.</p> | ||
|
||
<h1 id="output">Output</h1> | ||
|
||
<p><code class="language-plaintext highlighter-rouge">content</code> MUST contain the event ID of the <code class="language-plaintext highlighter-rouge">kind:1040</code> event.</p> | ||
|
||
<ul> | ||
<li>Retrieving counts for list pages (number of messages in a conversation, number of lists on a profile)</li> | ||
<li>Getting metadata for tags (this topic has been used x times)</li> | ||
</ul> | ||
|
||
<h1 id="example">Example</h1> | ||
|
||
<h2 id="request">Request</h2> | ||
|
||
<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="w"> | ||
</span><span class="nl">"content"</span><span class="p">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span><span class="w"> | ||
</span><span class="nl">"kind"</span><span class="p">:</span><span class="w"> </span><span class="mi">5900</span><span class="p">,</span><span class="w"> | ||
</span><span class="nl">"pubkey"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<pubkey-a>"</span><span class="p">,</span><span class="w"> | ||
</span><span class="nl">"tags"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"> | ||
</span><span class="p">[</span><span class="w"> </span><span class="s2">"i"</span><span class="p">,</span><span class="w"> </span><span class="s2">"<eventid>"</span><span class="p">,</span><span class="w"> </span><span class="s2">"event"</span><span class="w"> </span><span class="p">],</span><span class="w"> | ||
</span><span class="p">]</span><span class="w"> | ||
</span><span class="p">}</span><span class="w"> | ||
</span></code></pre></div></div> | ||
|
||
<h2 id="desponse">Desponse</h2> | ||
|
||
<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="w"> | ||
</span><span class="nl">"content"</span><span class="p">:</span><span class="w"> </span><span class="s2">"<eventid-of-1040-event>"</span><span class="p">,</span><span class="w"> | ||
</span><span class="nl">"kind"</span><span class="p">:</span><span class="w"> </span><span class="mi">6900</span><span class="p">,</span><span class="w"> | ||
</span><span class="nl">"tags"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"> | ||
</span><span class="p">[</span><span class="w"> </span><span class="s2">"i"</span><span class="p">,</span><span class="w"> </span><span class="s2">"<eventid>"</span><span class="p">,</span><span class="w"> </span><span class="s2">"event"</span><span class="w"> </span><span class="p">],</span><span class="w"> | ||
</span><span class="p">[</span><span class="w"> </span><span class="s2">"p"</span><span class="p">,</span><span class="w"> </span><span class="s2">"<pubkey-a>"</span><span class="w"> </span><span class="p">],</span><span class="w"> | ||
</span><span class="p">[</span><span class="w"> </span><span class="s2">"e"</span><span class="p">,</span><span class="w"> </span><span class="s2">"<event-id-of-5900>"</span><span class="w"> </span><span class="p">]</span><span class="w"> | ||
</span><span class="p">]</span><span class="w"> | ||
</span><span class="p">}</span><span class="w"> | ||
</span></code></pre></div></div> | ||
|
||
</div><!-- /.content --> | ||
</div><!-- /.col --> | ||
<div class="col-md-4 col-md-offset-1"> | ||
<div class="sections-list-wrapper"> | ||
<div class="sections-list js-sections js-affix js-scrollspy hidden-xs hidden-sm"></div><!-- /.sections-list --> | ||
</div> | ||
</div><!-- /.col --> | ||
</div><!-- /.row --> | ||
</div><!-- /.container --> | ||
</div><!-- /.section --> | ||
|
||
<div class="js-footer-area"> | ||
|
||
|
||
|
||
<footer class="site-footer"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-sm-6"> | ||
|
||
<a href="/" class="site-footer__logo">Data Vending Machine</a> | ||
|
||
|
||
<hr> | ||
<p class="site-footer__copyright">MIT License</p> | ||
|
||
</div><!-- /.col --> | ||
|
||
<div class="col-sm-6 align-right"> | ||
<ul class="social-list"> | ||
|
||
<li> | ||
<a href="https://github.com/pablof7z/data-vending-machines.org" target="_blank" class="social-list__item social-list__item--github"> | ||
<i class="icon icon--github"></i> | ||
</a> | ||
</li> | ||
|
||
</ul><!-- /.social-list --> | ||
</div><!-- /.col --> | ||
|
||
</div><!-- /.row --> | ||
</div><!-- /.container --> | ||
</footer><!-- /.site-footer --> | ||
|
||
|
||
<script src="/doks-theme/assets/js/vendor/jquery.min.js"></script> | ||
<script type="text/javascript" src="/doks-theme/assets/js/vendor/bootstrap/affix.min.js"></script> | ||
<script type="text/javascript" src="/doks-theme/assets/js/vendor/bootstrap/scrollspy.min.js"></script> | ||
<script type="text/javascript" src="/doks-theme/assets/js/vendor/matchHeight.min.js"></script> | ||
<script type="text/javascript" src="/doks-theme/assets/js/scripts.min.js"></script> | ||
|
||
|
||
|
||
|
||
</div><!-- /.js-footer-area --> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<meta name="viewport" content="width=device-width, minimum-scale=1.0"> | ||
<title>Others</title> | ||
|
||
<meta name="description" content="Jobs that don't fit neatly in other categories"> | ||
|
||
|
||
<meta name="keywords" content="nostr"> | ||
|
||
<link rel="icon" href="/favicon.ico" type="image/x-icon"> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,400i,500,500i,700,700i|Noto+Sans:400,400i,700,700i|Source+Code+Pro&subset=latin-ext"> | ||
<link rel="stylesheet" href="/doks-theme/assets/css/style.css"> | ||
|
||
</head> | ||
<body class="blue"> | ||
<div class="hero-subheader hero-subheader--before-out"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-7"> | ||
<div class="align-container" data-mh> | ||
<div class="align-inner"> | ||
|
||
<h1 class="hero-subheader__title">Others</h1> | ||
|
||
|
||
<p class="hero-subheader__desc">Jobs that don't fit neatly in other categories</p> | ||
|
||
|
||
|
||
<a href="/" class="btn btn--dark btn--rounded btn--w-icon"> | ||
|
||
Back | ||
</a> | ||
|
||
|
||
</div><!-- /.align-inner --> | ||
</div><!-- /.align-container --> | ||
</div><!-- /.col --> | ||
|
||
</div><!-- /.row --> | ||
</div><!-- /.container --> | ||
</div><!-- /.hero-subheader --> | ||
|
||
<div class="section section--darker-theme-color-bg"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div class="nav-grid nav-grid--out"> | ||
<div class="row"> | ||
|
||
<div class="col-sm-6 col-lg-4"> | ||
<a href="/kinds/5900" class="nav-grid__item"> | ||
<div class="nav-grid__content" data-mh> | ||
<h2 class="nav-grid__title">Nostr Event Time Stamping</h2> | ||
<p>Generate NIP-03 event timestamps</p> | ||
</div><!-- /.nav-grid__content --> | ||
<p class="nav-grid__btn"> | ||
View | ||
<i class="icon icon--arrow-right"></i> | ||
</p> | ||
</a><!-- /.nav-grid__item --> | ||
</div><!-- /.col --> | ||
|
||
</div><!-- /.row --> | ||
</div><!-- /.nav-grid --> | ||
</div><!-- /.col --> | ||
</div><!-- /.row --> | ||
</div><!-- /.container --> | ||
</div><!-- /.section --> | ||
|
||
|
||
<footer class="site-footer"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-sm-6"> | ||
|
||
<a href="/" class="site-footer__logo">Data Vending Machine</a> | ||
|
||
|
||
<hr> | ||
<p class="site-footer__copyright">MIT License</p> | ||
|
||
</div><!-- /.col --> | ||
|
||
<div class="col-sm-6 align-right"> | ||
<ul class="social-list"> | ||
|
||
<li> | ||
<a href="https://github.com/pablof7z/data-vending-machines.org" target="_blank" class="social-list__item social-list__item--github"> | ||
<i class="icon icon--github"></i> | ||
</a> | ||
</li> | ||
|
||
</ul><!-- /.social-list --> | ||
</div><!-- /.col --> | ||
|
||
</div><!-- /.row --> | ||
</div><!-- /.container --> | ||
</footer><!-- /.site-footer --> | ||
|
||
|
||
<script src="/doks-theme/assets/js/vendor/jquery.min.js"></script> | ||
<script type="text/javascript" src="/doks-theme/assets/js/vendor/bootstrap/affix.min.js"></script> | ||
<script type="text/javascript" src="/doks-theme/assets/js/vendor/bootstrap/scrollspy.min.js"></script> | ||
<script type="text/javascript" src="/doks-theme/assets/js/vendor/matchHeight.min.js"></script> | ||
<script type="text/javascript" src="/doks-theme/assets/js/scripts.min.js"></script> | ||
|
||
|
||
|
||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
layout: default | ||
title: Nostr Event Time Stamping | ||
description: NIP-03 Timestamping of nostr events | ||
--- | ||
|
||
# Input | ||
|
||
Event ID to be stamped. | ||
|
||
# Output | ||
|
||
`content` MUST contain the event ID of the `kind:1040` event. | ||
|
||
- Retrieving counts for list pages (number of messages in a conversation, number of lists on a profile) | ||
- Getting metadata for tags (this topic has been used x times) | ||
|
||
# Example | ||
|
||
## Request | ||
|
||
```json | ||
{ | ||
"content": "", | ||
"kind": 5900, | ||
"pubkey": "<pubkey-a>", | ||
"tags": [ | ||
[ "i", "<eventid>", "event" ], | ||
] | ||
} | ||
``` | ||
|
||
## Desponse | ||
|
||
```json | ||
{ | ||
"content": "<eventid-of-1040-event>", | ||
"kind": 6900, | ||
"tags": [ | ||
[ "i", "<eventid>", "event" ], | ||
[ "p", "<pubkey-a>" ], | ||
[ "e", "<event-id-of-5900>" ] | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
# Page settings | ||
layout: homepage | ||
keywords: nostr | ||
|
||
# Hero section | ||
title: Others | ||
description: "Jobs that don't fit neatly in other categories" | ||
buttons: | ||
- content: Back | ||
url: '/' | ||
external_url: false | ||
# - icon: github | ||
# content: Button with icon | ||
# url: '#' | ||
# external_url: true | ||
|
||
|
||
# Grid navigation | ||
grid_navigation: | ||
- title: Nostr Event Time Stamping | ||
excerpt: "Generate NIP-03 event timestamps" | ||
cta: View | ||
url: '/kinds/5900' | ||
--- |