feat: dusking DBCs, massive renamings #290
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGE: many types renamed
SNT
: the unit of our currencyNano
: (currently Token) 10^-9 SNTCashNote
: (currently DBC), spendable unique key along with spend related information, containing n nanos. This CashNote contains unique key related information, leaking it damages privacy but it cannot be spent by an attacker since it doesn’t contain your private key.Spend
/SignedSpend
: Network representation of a spent CashNote, it cannot be linked back to your MainKey. It makes the system auditable and transactions verifiableTransaction
: (currently DbcTransaction), Network operation that creates new CashNote while spending CashNote of the same total value, transaction information is findable both in CashNotes and in the Spends on the Network.NoteRedemption
: (currently UTXO) minimal information from which the recipient of a Transaction can redeem their new spendable CashNoteTransfer
: encrypted NoteRedemptions ready to be sent to a transaction recipient so they can receive money.As for keys:
MainSecretKey
: (current MainKey) the private main key (secret)DerivedSecretKey
: (current DerivedKey) a derived key from the main key (IS UNIQUE but secret)MainPubkey
: (current PublicAddress) the public key of the main keyUniquePubkey
: (current dbc_id) the public key of the derived key (IS UNIQUE)