Skip to content

Commit 7dcc49f

Browse files
committed
wp & docs
1 parent c82dad2 commit 7dcc49f

File tree

36 files changed

+1105
-1513
lines changed

36 files changed

+1105
-1513
lines changed

VIAT.pages

409 KB
Binary file not shown.

components/cryptoID/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ import logMethods from '#utilities/logs/classLogMethods';
2121
import path from 'node:path';
2222
import { toBase64Url } from '#crypto/utils.js';
2323
import viat from '#crypto/cipherSuite/viat.js';
24+
const securityTypes = {
25+
hybrid: viat,
26+
quantum: 'quantum',
27+
legacy: 'legacy',
28+
};
2429
export class CryptoID {
2530
constructor(config, optionalArg) {
2631
if (config === false) {
@@ -72,6 +77,7 @@ export class CryptoID {
7277
async generate(options) {
7378
this.signatureKeypair = await this.cipherSuite.signature.signatureKeypair();
7479
this.keyExchangeKeypair = await this.cipherSuite.keyExchange.keyExchangeKeypair();
80+
options?.type && (this.type = options.type);
7581
this.generateAddress();
7682
// console.log('KEY EXCHANGE', this.keyExchangeKeypair);
7783
}

docs/index.html

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,25 @@ <h4 align="center"> VIAT (⩝) </h4>
2828
<!-- <h5 align="center" class="mono"> SWAP TOKENS: <a href="https://binplorer.com/address/0x78d25a64b084db308d805a41b98c810a4f2c7f4a">$bVIAT (BNB)</a> | $SNTVT (ETH) </h5> -->
2929
<p>VIAT /ˈviː.æt/ is a bleeding-edge layered-dynamic-proof-of-work HYBRID-post-quantum multi-algo cryptocurrency. Viat is designed for realtime decentralized validation, extreme decentralized scalability, decentralized block creation, asynchronous architecture, and the highest security potential. Each transaction is treated as its own block, allowing massive parallelism and constant-time lookups through a modular extendable trie-based filesystem optimized for SPECIFIC modernized filesystems on modern SSDs. Viat’s blockchain architecture is a general purpose superstructure with specialized self-constructing branches that incorporates both linear and dag based blockchains. Wallets have their own localized chains while global state is brought to order by two types of miners: arbiters for validation and auditors for canonical history. This design creates a linear relationship between network hardware resources and max tps potential through massive parallel decentralized validation.</p>
3030
<hr style="margin: 25px auto; width: 75%" />
31-
<p><span style="margin-left: 10px"> SYMBOL: <a href="https://www.compart.com/en/unicode/U+2A5D"></a></span>
32-
</p>
33-
<p> 󱕴 <span style="margin-left: 10px">SIGNATURE: [DILITHIUM ◉ ED25519 ◉ SPHINCS+]</span>
34-
</p>
35-
<p> 󰌇 <span style="margin-left: 10px">KEY EXCHANGE: [KYBER ◉ x25519]</span></p>
36-
<p><span style="margin-left: 10px">HASH: SHAKE256  [64B 512bits, 32B 256bits]</span></p>
37-
<p><span style="margin-left: 10px">STRICT HASH: SHA3-256 SHA3-512</span></p>
38-
<p> 󰀋 <span style="margin-left: 10px">WALLET ADDRESS: 64bytes  SHAKE256-512bit output</span></p>
39-
<p> 󱌒 <span style="margin-left: 10px">ENCRYPTION (AEAD): AEGIS-256 - XChaCha20Poly1305-IETF</span></p>
31+
<p><span style="margin-left: 10px">SYMBOL: <a href="https://www.compart.com/en/unicode/U+2A5D"></a></span></p>
32+
<p> 󱕴 <span style="margin-left: 10px">SIGNATURE: [DILITHIUM ◉ ED25519 ◉ SPHINCS+]</span></p>
33+
<p> 󰀋 <span style="margin-left: 10px">WALLET ADDRESS: [20, 32, 64]BYTES (SHAKE256)</span></p>
4034
<p> 󰢷 <span style="margin-left: 10px">PROOF: Layered Dynamic Proof of Work</span></p>
41-
<p> 󰢷 <span style="margin-left: 10px">PROOFS: PROOF-OF-WORK [PoW], PROOF-OF-FUNDS [PoW], PROOF-OF-STAKE [PoS] (OPT-IN), PROOF-OF-VERIFICATION [PoV], PROOF-OF-HISTORY [PoH]</span></p>
42-
<p><span style="margin-left: 10px">BLOCKCHAIN: HIERARCHICAL BLOCK-TRIE SUPERSTRUCTURE</span></p>
43-
<p><span style="margin-left: 10px">FILESYSTEM: PHYSICAL HIERARCHICAL SELF-ORGANIZING FILESYSTEM</span></p>
35+
<p><span style="margin-left: 10px">BLOCKCHAIN: SUPERSTRUCTURE</span></p>
36+
<p> 󰌇 <span style="margin-left: 10px">KEY EXCHANGE: [KYBER ◉ x25519]</span></p>
37+
<p><span style="margin-left: 10px">HASH: SHAKE256  SHAKE256  [64B 512bits, 32B 256bits, 20B 160bits] (XOF)</span></p>
38+
<p><span style="margin-left: 10px">GENESIS HASHES: SHAKE256  [256B - 2048bits] (XOF) &gt;1600bits</span></p>
39+
<p><span style="margin-left: 10px">STRICT HASH: SHA3-256 ◉ SHA3-512</span></p>
40+
<p>  <span style="margin-left: 10px">LEDGER TYPE: Quantized Ledger</span></p>
41+
<p><span style="margin-left: 10px">FILESYSTEM: SELF-ORGANIZING FILESYSTEM</span></p>
4442
<p> 󰿨 <span style="margin-left: 10px">BLOCKCHAIN TYPES: [DAG ◉ LINEAR BLOCKCHAIN]</span></p>
43+
<p> 󱌒 <span style="margin-left: 10px">ENCRYPTION (AEAD): AEGIS-256 - XChaCha20Poly1305-IETF</span></p>
4544
<p> 󰘦 <span style="margin-left: 10px">ENCODING: CBOR-X  BINARY DATA SERIALIZATION FORMAT</span></p>
45+
<p> 󰢷 <span style="margin-left: 10px">PROOFS: PROOF-OF-WORK [PoW], PROOF-OF-FUNDS [PoF], PROOF-OF-STAKE [PoS] (OPT-IN), PROOF-OF-VERIFICATION [PoV], PROOF-OF-HISTORY [PoH]</span></p>
46+
<p> 󰿘 <span style="margin-left: 10px">NETWORK PROTOCOL: UW://[UDSP + DIS] {UDP} - (TRANSPORT AGNOSTIC)</span></p>
47+
<p> 󰇖 <span style="margin-left: 10px">DOMAIN SYSTEM: Domain Information System [DIS]</span></p>
48+
<p><span style="margin-left: 10px">QUANTUM: QUANTUM PROOF & QUANTUM READY</span></p>
49+
<p><span style="margin-left: 10px">DESIGN VERSION: v5.0.0</span></p>
4650
<hr style="margin: 25px auto; width: 75%" />
4751
</div>
4852

docs/viat.html

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,24 @@ <h4 align="center"> VIAT (⩝) </h4>
33
<!-- <h5 align="center" class="mono"> SWAP TOKENS: <a href="https://binplorer.com/address/0x78d25a64b084db308d805a41b98c810a4f2c7f4a">$bVIAT (BNB)</a> | $SNTVT (ETH) </h5> -->
44
<p>VIAT /ˈviː.æt/ is a bleeding-edge layered-dynamic-proof-of-work HYBRID-post-quantum multi-algo cryptocurrency. Viat is designed for realtime decentralized validation, extreme decentralized scalability, decentralized block creation, asynchronous architecture, and the highest security potential. Each transaction is treated as its own block, allowing massive parallelism and constant-time lookups through a modular extendable trie-based filesystem optimized for SPECIFIC modernized filesystems on modern SSDs. Viat’s blockchain architecture is a general purpose superstructure with specialized self-constructing branches that incorporates both linear and dag based blockchains. Wallets have their own localized chains while global state is brought to order by two types of miners: arbiters for validation and auditors for canonical history. This design creates a linear relationship between network hardware resources and max tps potential through massive parallel decentralized validation.</p>
55
<hr style="margin: 25px auto; width: 75%" />
6-
<p><span style="margin-left: 10px"> SYMBOL: <a href="https://www.compart.com/en/unicode/U+2A5D"></a></span>
7-
</p>
8-
<p> 󱕴 <span style="margin-left: 10px">SIGNATURE: [DILITHIUM ◉ ED25519 ◉ SPHINCS+]</span>
9-
</p>
10-
<p> 󰌇 <span style="margin-left: 10px">KEY EXCHANGE: [KYBER ◉ x25519]</span></p>
11-
<p><span style="margin-left: 10px">HASH: SHAKE256  [64B 512bits, 32B 256bits]</span></p>
12-
<p><span style="margin-left: 10px">STRICT HASH: SHA3-256 SHA3-512</span></p>
13-
<p> 󰀋 <span style="margin-left: 10px">WALLET ADDRESS: 64bytes  SHAKE256-512bit output</span></p>
14-
<p> 󱌒 <span style="margin-left: 10px">ENCRYPTION (AEAD): AEGIS-256 - XChaCha20Poly1305-IETF</span></p>
6+
<p><span style="margin-left: 10px">SYMBOL: <a href="https://www.compart.com/en/unicode/U+2A5D"></a></span></p>
7+
<p> 󱕴 <span style="margin-left: 10px">SIGNATURE: [DILITHIUM ◉ ED25519 ◉ SPHINCS+]</span></p>
8+
<p> 󰀋 <span style="margin-left: 10px">WALLET ADDRESS: [20, 32, 64]BYTES (SHAKE256)</span></p>
159
<p> 󰢷 <span style="margin-left: 10px">PROOF: Layered Dynamic Proof of Work</span></p>
16-
<p> 󰢷 <span style="margin-left: 10px">PROOFS: PROOF-OF-WORK [PoW], PROOF-OF-FUNDS [PoW], PROOF-OF-STAKE [PoS] (OPT-IN), PROOF-OF-VERIFICATION [PoV], PROOF-OF-HISTORY [PoH]</span></p>
17-
<p><span style="margin-left: 10px">BLOCKCHAIN: HIERARCHICAL BLOCK-TRIE SUPERSTRUCTURE</span></p>
18-
<p><span style="margin-left: 10px">FILESYSTEM: PHYSICAL HIERARCHICAL SELF-ORGANIZING FILESYSTEM</span></p>
10+
<p><span style="margin-left: 10px">BLOCKCHAIN: SUPERSTRUCTURE</span></p>
11+
<p> 󰌇 <span style="margin-left: 10px">KEY EXCHANGE: [KYBER ◉ x25519]</span></p>
12+
<p><span style="margin-left: 10px">HASH: SHAKE256  SHAKE256  [64B 512bits, 32B 256bits, 20B 160bits] (XOF)</span></p>
13+
<p><span style="margin-left: 10px">GENESIS HASHES: SHAKE256  [256B - 2048bits] (XOF) &gt;1600bits</span></p>
14+
<p><span style="margin-left: 10px">STRICT HASH: SHA3-256 ◉ SHA3-512</span></p>
15+
<p>  <span style="margin-left: 10px">LEDGER TYPE: Quantized Ledger</span></p>
16+
<p><span style="margin-left: 10px">FILESYSTEM: SELF-ORGANIZING FILESYSTEM</span></p>
1917
<p> 󰿨 <span style="margin-left: 10px">BLOCKCHAIN TYPES: [DAG ◉ LINEAR BLOCKCHAIN]</span></p>
18+
<p> 󱌒 <span style="margin-left: 10px">ENCRYPTION (AEAD): AEGIS-256 - XChaCha20Poly1305-IETF</span></p>
2019
<p> 󰘦 <span style="margin-left: 10px">ENCODING: CBOR-X  BINARY DATA SERIALIZATION FORMAT</span></p>
20+
<p> 󰢷 <span style="margin-left: 10px">PROOFS: PROOF-OF-WORK [PoW], PROOF-OF-FUNDS [PoF], PROOF-OF-STAKE [PoS] (OPT-IN), PROOF-OF-VERIFICATION [PoV], PROOF-OF-HISTORY [PoH]</span></p>
21+
<p> 󰿘 <span style="margin-left: 10px">NETWORK PROTOCOL: UW://[UDSP + DIS] {UDP} - (TRANSPORT AGNOSTIC)</span></p>
22+
<p> 󰇖 <span style="margin-left: 10px">DOMAIN SYSTEM: Domain Information System [DIS]</span></p>
23+
<p><span style="margin-left: 10px">QUANTUM: QUANTUM PROOF & QUANTUM READY</span></p>
24+
<p><span style="margin-left: 10px">DESIGN VERSION: v5.0.0</span></p>
2125
<hr style="margin: 25px auto; width: 75%" />
2226
</div>

examples/encoding.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import * as cbor from 'cbor-x';
22
import * as msgPack from 'msgpackr';
3-
import { runBench } from './benchmark.js';
3+
import { runBench } from '#utilities/benchmark';
44
const example = {
55
foo: 'bar',
66
bar: {
77
baz: 'qux',
88
},
99
qux: [
10-
1, 2, 3
10+
1, 2, 3,
1111
],
1212
quux: {
1313
corge: 'grault',
@@ -29,7 +29,7 @@ const example = {
2929
},
3030
bin: Buffer.from('hello world'),
3131
timestamp: new Date(),
32-
timenow: Date.now()
32+
timenow: Date.now(),
3333
};
3434
const cborEncode = await cbor.encode(example);
3535
const msgPackEncode = await msgPack.encode(example);

jsconfig.json

Lines changed: 59 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,83 +2,95 @@
22
"compilerOptions": {
33
"baseUrl": ".",
44
"paths": {
5-
"#viat/*": [
6-
"./viat/*.js"
7-
],
8-
"#utilities/*": [
9-
"./utilities/*.js"
5+
"#certificate": [
6+
"udsp/certificate/index.js"
107
],
11-
"#components/*": [
12-
"./components/*.js"
8+
"#cleanPath": [
9+
"./utilities/cleanPath.js"
1310
],
14-
"#server/*": [
15-
"udsp/server/*.js"
11+
"#client*": [
12+
"udsp/client/index.js"
1613
],
1714
"#client/*": [
1815
"udsp/client/*.js"
1916
],
20-
"#server*": [
21-
"udsp/server/index.js"
17+
"#components/*": [
18+
"./components/*.js"
2219
],
23-
"#client*": [
24-
"udsp/client/index.js"
20+
"#config/*": [
21+
"./config/*.js"
2522
],
26-
"#profile/*": [
27-
"cryptoID/*.js"
23+
"#crypto/": [
24+
"./utilities/cryptography/"
2825
],
29-
"#serverApp/*": [
30-
"examples/serverApp/*.js"
26+
"#hash/": [
27+
"./utilities/cryptography/hash/*.js"
3128
],
32-
"#schemes/*": [
33-
"browser/schemes/*.js"
29+
"#cipher/": [
30+
"./utilities/cryptography/cipher/*.js"
3431
],
35-
"#resources/*": [
36-
"./resources/*"
32+
"#keyExchange/": [
33+
"./utilities/cryptography/keyExchange/*.js"
34+
],
35+
"#signature/": [
36+
"./utilities/cryptography/signature/*.js"
3737
],
3838
"#examples/*": [
3939
"./examples/*.js"
4040
],
41-
"#state/*": [
42-
"./state/*.js"
43-
],
44-
"#config/*": [
45-
"./config/*.js"
46-
],
47-
"#udsp/*": [
48-
"./udsp/*.js"
49-
],
50-
"#sodium": [
51-
"./sodium.js"
52-
],
53-
"#crypto/": [
54-
"./utilities/cryptography/"
41+
"#file": [
42+
"./utilities/file.js"
5543
],
56-
"#watch": [
57-
"./utilities/watch.js"
44+
"#keychain": [
45+
"udsp/certificate/keychain.js"
5846
],
5947
"#logs": [
6048
"utilities/logs/logs.js"
6149
],
62-
"#cleanPath": [
63-
"./utilities/cleanPath.js"
50+
"#pluckBuffer": [
51+
"./utilities/pluckBuffer.js"
6452
],
65-
"#file": [
66-
"./utilities/file.js"
53+
"#profile/*": [
54+
"cryptoID/*.js"
6755
],
6856
"#propertyAccess": [
6957
"./utilities/propertyAccess.js"
7058
],
71-
"#pluckBuffer": [
72-
"./utilities/pluckBuffer.js"
59+
"#resources/*": [
60+
"./resources/*"
7361
],
74-
"#certificate": [
75-
"udsp/certificate/index.js"
62+
"#schemes/*": [
63+
"browser/schemes/*.js"
64+
],
65+
"#server*": [
66+
"udsp/server/index.js"
67+
],
68+
"#server/*": [
69+
"udsp/server/*.js"
70+
],
71+
"#serverApp/*": [
72+
"examples/serverApp/*.js"
73+
],
74+
"#sodium": [
75+
"./sodium.js"
76+
],
77+
"#state/*": [
78+
"./state/*.js"
7679
],
7780
"#udsp": [
7881
"./udsp/index.js"
7982
],
80-
"#keychain": [
81-
"udsp/certificate/keychain.js"
83+
"#udsp/*": [
84+
"./udsp/*.js"
85+
],
86+
"#utilities/*": [
87+
"./utilities/*.js"
88+
],
89+
"#viat/*": [
90+
"./viat/*.js"
91+
],
92+
"#watch": [
93+
"./utilities/watch.js"
8294
]
8395
},
8496
"module": "NodeNext",

0 commit comments

Comments
 (0)