This article explains the append process in distributed systems: how nodes locally create records with cryptographic hashes, signatures, and timestamps; how records are validated and updated during replication; and how multisig ensures quorum approval. It also covers record validation rules, the role of shared public keys, and how root and state hashes maintain eventual consistency without depending on append order.This article explains the append process in distributed systems: how nodes locally create records with cryptographic hashes, signatures, and timestamps; how records are validated and updated during replication; and how multisig ensures quorum approval. It also covers record validation rules, the role of shared public keys, and how root and state hashes maintain eventual consistency without depending on append order.

Multisig, Hashes, and the Math Behind Trustless Record Keeping

2025/10/02 16:30

Abstract and 1. Introduction

  1. System model

  2. Initial node state

  3. Append process

    4.1 Local append

    4.2 Append from another node

    4.3 Record validation

    4.4 State consistency

  4. Replication process

  5. Proof of correctness

  6. M-of-N connections

  7. Extensions and optimizations

References

4. Append process

4.1 Local append

The append process looks like that:

\

  1. Each new record should have key, value and version fields

    \

  2. On append, the algorithm should create hash of record: β„Žπ‘Žπ‘ β„Ž = π‘ β„Žπ‘Ž256(π‘˜π‘’π‘¦, π‘£π‘Žπ‘™π‘’π‘’, π‘£π‘’π‘Ÿπ‘ π‘–π‘œπ‘›). This hash brings uniqueness to the record

    \

  3. Then algorithm should create partial signature as follow: partialSignature = (privateKey βˆ— hash)π‘šπ‘œπ‘‘ 𝑁, where 𝑁 is curve parameter.

    \

  4. Then algorithm add timestamp and timestamp index to the record. The timestamp – is a timestamp when record is created. The timestamp index is used when concurrency is possible, and two or more records can be created at the same time. In case this happens, all records with the same time have their own index (like 0, 1, 2).

    \

  5. Then this record, alongside with hash and signature can be stored locally (for instance in database)

    \

  6. This record is called intermediate

\ Example of intermediate record

\

4.2 Append from another node

When one node receives new records from another (for instance node A obtained records from node B) during replication process, the append rules vary:

\

  1. The algorithm should validate the record

    \

  2. Then algorithm should check, do this node already has this record (it can be done by finding the record by hash).

    \ 2.1)If record exist then:

    \ 2.1.1) In case received record is multisig and local record is intermediate – then algorithm should replace local intermediate record with received multisig and update the root.

    \ 2.1.2) In case local and received records are multisig, then the highest multisig is chosen (the algorithm compares 2 signatures by value) and stored in local record.

    \ 2.1.3) In case local record is multisig and received one is intermediate – then algorithm ignore this record (i.e. doesn’t apply) 2.1.4) In case local and received records are intermediate – then algorithm just take signatures from received record (which are not present on local record) and append them to local record.

    \ 2.2)if record doesn’t exist:

    \ 2.2.1) then algorithm should sign the hash of the received record (like was in local append described above), add it to this record and store

    \

  3. Then the algorithm should check if there are enough signatures for multisig (this number is defined by quorum size).

    \ 3.1) if yes then:

    \ 3.1.1) algorithm build multisig: π‘ π‘–π‘”π‘›π‘Žπ‘‘π‘’π‘Ÿπ‘’ = βˆ‘ π‘π‘Žπ‘Ÿπ‘‘π‘–π‘Žπ‘™π‘†π‘–π‘”π‘›π‘Žπ‘‘π‘’π‘Ÿπ‘’ π‘–π‘šπ‘œπ‘‘ 𝑁

    \ 3.1.2) algorithm build shared public key: π‘ β„Žπ‘Žπ‘Ÿπ‘’π‘‘π‘ƒπ‘’π‘π‘™π‘–π‘πΎπ‘’π‘¦ = βˆ‘ 𝑝𝑒𝑏𝑙𝑖𝑐𝐾𝑒𝑦𝑖 βˆ— β„Žπ‘Žπ‘ β„Ž

    \ 3.1.3) algorithm replace intermediate signatures with multisig and sharedPublicKey

    \ 3.1.4) algorithm save the record and update the root.

\ \ Example of multisig record

\

4.3 Record validation

The validation process works as follows:

\

  1. First signatures are validated: in case of intermediate signatures

\ 1.1) If signatures are intermediate, then for each intermediate signature the algorithm validate that: 𝑝𝑒𝑏𝑙𝑖𝑐𝐾𝑒𝑦𝑖 βˆ— β„Žπ‘Žπ‘ β„Ž = π‘ π‘–π‘”π‘›π‘Žπ‘‘π‘’π‘Ÿπ‘’ βˆ— 𝐺, where G – is a curve parameter (SECP256K1)

\ 1.2)If signature is multisig, then

\ 1.2.1) sharedPublicKey is reconstructed from involved public keys in signature process (the public keys with signatures are stored in record) and compared against received sharedPublicKey. If it’s not equal – then validation is not passed

\ 1.2.2) then multisignature is validated as: π‘šπ‘’π‘™π‘‘π‘–π‘†π‘–π‘”π‘›π‘Žπ‘‘π‘’π‘Ÿπ‘’ βˆ— 𝐺 = π‘ β„Žπ‘Žπ‘Ÿπ‘’π‘‘π‘ƒπ‘’π‘π‘™π‘–π‘πΎπ‘’π‘¦

\

4.4 State consistency

To make sure, that all nodes have the same sets of records, the root has been introduced. The root is represented as sum of hashes of confirmed records (records with multisig): π‘Ÿπ‘œπ‘œπ‘‘ = βˆ‘ β„Žπ‘Žπ‘ β„Ž 𝑖 π‘šπ‘œπ‘‘ 𝑛, where 𝑛 is a curve parameter. The following formula allows to build the root without order, so technically the append order of hashes doesn’t make any sense in this case. Also, keep in mind, as algorithm has eventual consistency (without rollback option) – we can’t guarantee any ordering.

\ Also, to make root update quick, the algorithm stores the root on record level:

\

  1. On multisig record insert, the algorithm updates the root by addition of previous root to record’s hash: π‘Ÿπ‘œπ‘œπ‘‘ = (π‘Ÿπ‘œπ‘œπ‘‘π‘π‘Ÿπ‘’π‘£ + β„Žπ‘Žπ‘ β„Ž) π‘šπ‘œπ‘‘ 𝑛

    \

  2. Then this root hash is appended to the record (I call it stateHash)

    \

  3. During next append of another new record, there is no need to recalculate the hash root of all records, but we sort confirmed (multisig) records in DESC order by timestamp and timestamp index, and take stateHash from the first record (which is the most recent one)

\ This approach is also useful for traceability and validation purpose, as all state can be replayed up to any point of history and calculated hash root can be compared with stateHash.

\

:::info Author:

(1) Egor Zuev (zyev.egor@gmail.com)

:::


:::info This paper is available on arxiv under CC0 1.0 UNIVERSAL license.

:::

\

Disclaimer: The articles reposted on this site are sourced from public platforms and are provided for informational purposes only. They do not necessarily reflect the views of MEXC. All rights remain with the original authors. If you believe any content infringes on third-party rights, please contact service@support.mexc.com for removal. MEXC makes no guarantees regarding the accuracy, completeness, or timeliness of the content and is not responsible for any actions taken based on the information provided. The content does not constitute financial, legal, or other professional advice, nor should it be considered a recommendation or endorsement by MEXC.
Share Insights

You May Also Like

Adoption Leads Traders to Snorter Token

Adoption Leads Traders to Snorter Token

The post Adoption Leads Traders to Snorter Token appeared on BitcoinEthereumNews.com. Largest Bank in Spain Launches Crypto Service: Adoption Leads Traders to Snorter Token Sign Up for Our Newsletter! For updates and exclusive offers enter your email. Leah is a British journalist with a BA in Journalism, Media, and Communications and nearly a decade of content writing experience. Over the last four years, her focus has primarily been on Web3 technologies, driven by her genuine enthusiasm for decentralization and the latest technological advancements. She has contributed to leading crypto and NFT publications – Cointelegraph, Coinbound, Crypto News, NFT Plazas, Bitcolumnist, Techreport, and NFT Lately – which has elevated her to a senior role in crypto journalism. Whether crafting breaking news or in-depth reviews, she strives to engage her readers with the latest insights and information. Her articles often span the hottest cryptos, exchanges, and evolving regulations. As part of her ploy to attract crypto newbies into Web3, she explains even the most complex topics in an easily understandable and engaging way. Further underscoring her dynamic journalism background, she has written for various sectors, including software testing (TEST Magazine), travel (Travel Off Path), and music (Mixmag). When she’s not deep into a crypto rabbit hole, she’s probably island-hopping (with the Galapagos and Hainan being her go-to’s). Or perhaps sketching chalk pencil drawings while listening to the Pixies, her all-time favorite band. This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy Center or Cookie Policy. I Agree Source: https://bitcoinist.com/banco-santander-and-snorter-token-crypto-services/
Share
BitcoinEthereumNews2025/09/17 23:45
Share
MoonBull Crypto Presale Site Climbs at Stage 4 With 27.40% Jump as Ethereum and Toncoin Strengthen

MoonBull Crypto Presale Site Climbs at Stage 4 With 27.40% Jump as Ethereum and Toncoin Strengthen

The post MoonBull Crypto Presale Site Climbs at Stage 4 With 27.40% Jump as Ethereum and Toncoin Strengthen appeared on BitcoinEthereumNews.com. The crypto presale site investors are buzzing about could already be igniting, while many are still standing on the sidelines. Every cycle brings projects that soar, but only a few combine smart mechanics with meme-level hype , the ones that go from whispers to roars in weeks. Chasing the top presale projects often feels like trying to catch lightning in a bottle. Some investors jump too late and end up β€œholding the bag,” while others secure early spots and watch their conviction compound. It’s the eternal race to spot the next breakout before it blasts off. Toncoin vs Ethereum comparison dominates headlines with their latest updates , one driven by network growth, the other by scaling solutions. But right now, the MoonBull presale opportunity is showing why meme coin presale hype is real: numbers are climbing, and momentum is undeniable. MoonBull: A Crypto Presale Site Built on Trust and Growth Two features separate MoonBull from countless other projects claiming to be the best crypto presale sites contender: Referral System , Rewards on Both SidesMoonBull ($MOBU) referral system flips the script on community growth. Share a code, and when someone joins, both benefit. The inviter receives 15% in tokens instantly, while the new participant gains 15% extra tokens on top of their purchase. Add monthly leaderboards with USDC bonuses, and suddenly word-of-mouth becomes a growth engine with teeth. It’s like turning community chatter into rocket fuel for everyone involved. MoonBull Presale Opportunity: Stage 4 Numbers Don’t Lie The MoonBull official site is tracking a presale that’s already making waves. At Stage 4, the token is priced at $0.00005168 with over $200,000 raised and 700+ holders onboard. With a listing price of $0.00616, current investors are staring at more than 11,800% ROI potential. Early participants who entered at Stage 1 have already…
Share
BitcoinEthereumNews2025/10/06 08:15
Share