Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
fde403d1
Commit
fde403d1
authored
8 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
[enh]
#751
Documents' version to 10 (protocol documentation)
parent
b1536038
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/Protocol.md
+18
-18
18 additions, 18 deletions
doc/Protocol.md
with
18 additions
and
18 deletions
doc/Protocol.md
+
18
−
18
View file @
fde403d1
...
@@ -136,7 +136,7 @@ In this document *identifier*, `UserID`, `USER_ID` and `uid` will be indifferent
...
@@ -136,7 +136,7 @@ In this document *identifier*, `UserID`, `USER_ID` and `uid` will be indifferent
An identity is a
*signed*
document containing the identifier:
An identity is a
*signed*
document containing the identifier:
Version:
2
Version:
10
Type: Identity
Type: Identity
Currency: CURRENCY_NAME
Currency: CURRENCY_NAME
Issuer: PUBLIC_KEY
Issuer: PUBLIC_KEY
...
@@ -147,7 +147,7 @@ Here, `USER_ID` has to be replaced with a valid identifier, `PUBLIC_KEY` with a
...
@@ -147,7 +147,7 @@ Here, `USER_ID` has to be replaced with a valid identifier, `PUBLIC_KEY` with a
The whole identity document is then:
The whole identity document is then:
Version:
2
Version:
10
Type: Identity
Type: Identity
Currency: CURRENCY_NAME
Currency: CURRENCY_NAME
Issuer: PUBLIC_KEY
Issuer: PUBLIC_KEY
...
@@ -171,7 +171,7 @@ So the identity issuance is the act of saying:
...
@@ -171,7 +171,7 @@ So the identity issuance is the act of saying:
A valid identity:
A valid identity:
Version:
2
Version:
10
Type: Identity
Type: Identity
Currency: beta_brousouf
Currency: beta_brousouf
Issuer: HgTTJLAQ5sqfknMq7yLPZbehtuLSsKj9CxWN7k8QvYJd
Issuer: HgTTJLAQ5sqfknMq7yLPZbehtuLSsKj9CxWN7k8QvYJd
...
@@ -196,7 +196,7 @@ Its goal is only to inform that a created identity was either made by mistake, o
...
@@ -196,7 +196,7 @@ Its goal is only to inform that a created identity was either made by mistake, o
A revocation is a
*signed*
document gathering the identity informations to revoke:
A revocation is a
*signed*
document gathering the identity informations to revoke:
Version:
2
Version:
10
Type: Revocation
Type: Revocation
Currency: CURRENCY_NAME
Currency: CURRENCY_NAME
Issuer: PUBLIC_KEY
Issuer: PUBLIC_KEY
...
@@ -213,7 +213,7 @@ Where:
...
@@ -213,7 +213,7 @@ Where:
If we have the following identity:
If we have the following identity:
Version:
2
Version:
10
Type: Identity
Type: Identity
Currency: beta_brousouf
Currency: beta_brousouf
Issuer: HgTTJLAQ5sqfknMq7yLPZbehtuLSsKj9CxWN7k8QvYJd
Issuer: HgTTJLAQ5sqfknMq7yLPZbehtuLSsKj9CxWN7k8QvYJd
...
@@ -223,7 +223,7 @@ If we have the following identity:
...
@@ -223,7 +223,7 @@ If we have the following identity:
A valid revocation could be:
A valid revocation could be:
Version:
2
Version:
10
Type: Revocation
Type: Revocation
Currency: beta_brousouf
Currency: beta_brousouf
Issuer: HgTTJLAQ5sqfknMq7yLPZbehtuLSsKj9CxWN7k8QvYJd
Issuer: HgTTJLAQ5sqfknMq7yLPZbehtuLSsKj9CxWN7k8QvYJd
...
@@ -244,7 +244,7 @@ A *certification* in UCP refers to the document *certifying* that someone else's
...
@@ -244,7 +244,7 @@ A *certification* in UCP refers to the document *certifying* that someone else's
A certification has the following format:
A certification has the following format:
Version:
2
Version:
10
Type: Certification
Type: Certification
Currency: CURRENCY_NAME
Currency: CURRENCY_NAME
Issuer: PUBLIC_KEY
Issuer: PUBLIC_KEY
...
@@ -279,7 +279,7 @@ Where:
...
@@ -279,7 +279,7 @@ Where:
If we have the following complete self-certification:
If we have the following complete self-certification:
Version:
2
Version:
10
Type: Identity
Type: Identity
Currency: beta_brousouf
Currency: beta_brousouf
Issuer: HgTTJLAQ5sqfknMq7yLPZbehtuLSsKj9CxWN7k8QvYJd
Issuer: HgTTJLAQ5sqfknMq7yLPZbehtuLSsKj9CxWN7k8QvYJd
...
@@ -289,7 +289,7 @@ If we have the following complete self-certification:
...
@@ -289,7 +289,7 @@ If we have the following complete self-certification:
A valid certification could be:
A valid certification could be:
Version:
2
Version:
10
Type: Certification
Type: Certification
Currency: beta_brousouf
Currency: beta_brousouf
Issuer: DNann1Lh55eZMEDXeYt59bzHbA3NJR46DeQYCS2qQdLV
Issuer: DNann1Lh55eZMEDXeYt59bzHbA3NJR46DeQYCS2qQdLV
...
@@ -511,7 +511,7 @@ This function is a control over the signature.
...
@@ -511,7 +511,7 @@ This function is a control over the signature.
So if we have, in TX1:
So if we have, in TX1:
Version:
2
Version:
10
Type: Transaction
Type: Transaction
[...]
[...]
Outputs
Outputs
...
@@ -519,7 +519,7 @@ So if we have, in TX1:
...
@@ -519,7 +519,7 @@ So if we have, in TX1:
Then the `
25
` units can be spent *exclusively* in a future transaction TX2 which looks like:
Then the `
25
` units can be spent *exclusively* in a future transaction TX2 which looks like:
Version:
2
Version:
10
Type: Transaction
Type: Transaction
[...]
[...]
Issuers:
Issuers:
...
@@ -546,7 +546,7 @@ This function is a password control.
...
@@ -546,7 +546,7 @@ This function is a password control.
So if we have, in TX1:
So if we have, in TX1:
Version:
2
Version:
10
Type: Transaction
Type: Transaction
[...]
[...]
Outputs
Outputs
...
@@ -554,7 +554,7 @@ So if we have, in TX1:
...
@@ -554,7 +554,7 @@ So if we have, in TX1:
Then the `
25
` units can be spent *exclusively* in a future transaction TX2 which looks like:
Then the `
25
` units can be spent *exclusively* in a future transaction TX2 which looks like:
Version:
2
Version:
10
Type: Transaction
Type: Transaction
[...]
[...]
Issuers:
Issuers:
...
@@ -576,7 +576,7 @@ The necessary condition `XHX(8AFC8DF633FC158F9DB4864ABED696C1AA0FE5D617A7B5F7AB8
...
@@ -576,7 +576,7 @@ The necessary condition `XHX(8AFC8DF633FC158F9DB4864ABED696C1AA0FE5D617A7B5F7AB8
Key `
HsLShA
` sending 30 coins to key `
BYfWYF
` using 1 source transaction written in block #3.
Key `
HsLShA
` sending 30 coins to key `
BYfWYF
` using 1 source transaction written in block #3.
Version:
2
Version:
10
Type: Transaction
Type: Transaction
Currency: beta_brousouf
Currency: beta_brousouf
Blockstamp: 204-00003E2B8A35370BA5A7064598F628A62D4E9EC1936BE8651CE9A85F2E06981B
Blockstamp: 204-00003E2B8A35370BA5A7064598F628A62D4E9EC1936BE8651CE9A85F2E06981B
...
@@ -600,7 +600,7 @@ Signatures (fake here):
...
@@ -600,7 +600,7 @@ Signatures (fake here):
Key `
HsLShA
` sending 30 coins (base 2) to key `
BYfWYF
` using 2 sources transaction written in blocks #65 and #77 + 1 UD from block #88.
Key `
HsLShA
` sending 30 coins (base 2) to key `
BYfWYF
` using 2 sources transaction written in blocks #65 and #77 + 1 UD from block #88.
Version:
2
Version:
10
Type: Transaction
Type: Transaction
Currency: beta_brousouf
Currency: beta_brousouf
Blockstamp: 204-00003E2B8A35370BA5A7064598F628A62D4E9EC1936BE8651CE9A85F2E06981B
Blockstamp: 204-00003E2B8A35370BA5A7064598F628A62D4E9EC1936BE8651CE9A85F2E06981B
...
@@ -627,7 +627,7 @@ Signatures (fake here):
...
@@ -627,7 +627,7 @@ Signatures (fake here):
Key `
HsLShA
`, `
CYYjHs
` and `
9WYHTa
` sending 235 coins to key `
BYfWYF
` using 4 sources transaction + 2 UD from same block #46.
Key `
HsLShA
`, `
CYYjHs
` and `
9WYHTa
` sending 235 coins to key `
BYfWYF
` using 4 sources transaction + 2 UD from same block #46.
Version:
2
Version:
10
Type: Transaction
Type: Transaction
Currency: beta_brousouf
Currency: beta_brousouf
Blockstamp: 204-00003E2B8A35370BA5A7064598F628A62D4E9EC1936BE8651CE9A85F2E06981B
Blockstamp: 204-00003E2B8A35370BA5A7064598F628A62D4E9EC1936BE8651CE9A85F2E06981B
...
@@ -936,7 +936,7 @@ The document must be ended with a `BOTTOM_SIGNATURE` [Signature](#signature).
...
@@ -936,7 +936,7 @@ The document must be ended with a `BOTTOM_SIGNATURE` [Signature](#signature).
#### Example
#### Example
Version:
2
Version:
10
Type: Peer
Type: Peer
Currency: beta_brousouf
Currency: beta_brousouf
PublicKey: HsLShAtzXTVxeUtQd7yi5Z5Zh4zNvbu8sTEZ53nfKcqY
PublicKey: HsLShAtzXTVxeUtQd7yi5Z5Zh4zNvbu8sTEZ53nfKcqY
...
@@ -997,7 +997,7 @@ Local validation verifies the coherence of a well-formatted block, without any o
...
@@ -997,7 +997,7 @@ Local validation verifies the coherence of a well-formatted block, without any o
Rule:
Rule:
HEAD.version ==
6
HEAD.version ==
10
##### InnerHash
##### InnerHash
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment