LTO Network
  • Getting started
  • What is LTO Network?
  • Tutorials
    • Buying and staking LTO
      • Exchanges
        • Binance
        • AscendEX (Bitmax)
        • Uniswap
        • PancakeSwap
        • Other exchanges
      • Creating your LTO web wallet
      • Using the LTO token bridge
      • Staking LTO tokens
    • Mining
      • Setup your node wallets
      • Node management
      • Public community nodes
    • Anchoring
      • Hashing
    • LetsFlow
  • Wallets
    • LTO Web Wallet
      • Using Ledger
    • Universal Wallet
    • LTO CLI
    • Third-Party Wallets
      • Stakely.io wallet
        • Web wallet
        • Commandline
    • ERC20 Token Swap
  • Running a node
    • Public node
      • Installation Guide
        • Mainnet & Testnet
        • Requirements
        • Configuration
        • (Virtual) Machine
        • Nginx reverse proxy (optional)
        • Troubleshooting FAQ
      • Cloud installation
        • Alibaba Cloud
        • AWS Elastic Beanstalk
        • Google Cloud
        • IBM Cloud
        • Microsoft Azure
        • OKD (OpenShift)
        • Raspberry Pi (Expert)
        • Ubuntu Linux with Container
        • Windows with Container
      • REST API
        • Address
        • Wallet
        • Lease Transactions
        • Peers
        • Blocks
        • Utils
        • FAQ
      • Security Notes
      • FAQ
      • Exchange integration guide
    • Anchor node
      • Installation Guide
        • Linux
        • MacOS
        • Windows
      • REST API
    • Identity node
      • Installation guide
        • Linux
        • MacOs
        • Windows
      • Configuration
        • Trust network
      • REST API
    • Workflow node
      • Installation Guide
        • MacOS
        • Windows
        • Ubuntu Linux
      • REST API
  • Ownables
    • What are Ownables?
    • Making your first ownable
    • Ownables SDK
      • Prerequisites
      • Setup
    • Ownables Architecture
      • Smart Contract
      • Widget
    • Ownables Bridge
  • Templates Overview
  • Libraries
    • JavaScript
      • Accounts
      • Transactions
      • Event chain
      • Messages
      • Identities
      • HTTP Authentication
    • Python
      • Accounts
      • Public layer
    • PHP
      • Accounts
      • Identities
      • Public layer
      • Private layer
      • HTTP Authentication
      • Commandline scripts
    • Java
  • Protocol
    • Cryptography
    • Accounts
      • ED25519
      • secp256k1
      • secp256r1
    • Identities
      • Decentralized identifiers (DID)
      • Trust network
      • Verifiable credentials
    • Public layer
      • Transactions
        • Transfer
        • Lease
        • Cancel Lease
        • Mass Transfer
        • Set Script
        • Data
        • Anchor
        • Association
        • Revoke Association
        • Sponsorship
        • Cancel Sponsorship
        • Register
        • Burn
        • Mapped Anchor
        • Statement
        • Certificate
      • Transaction fees
      • Consensus protocol
      • Activation Protocol
      • Data Structures
    • Private layer
      • Event chain
        • Event
      • Messaging
        • Sending messages
Powered by GitBook
On this page
  • JSON
  • Binary schema
  1. Protocol
  2. Private layer
  3. Event chain

Event

An event on the event chain can be compared to a transaction on a blockchain. An event has the following structure

Field

mediaType

MIME type of the data

data

Binary

previous

The hash of the previous event

timestamp

Unix timestamp in milliseconds. Time of when the event was signed

signKey

Public key with key type

signature

Signature of the binary representation of the event

hash

Hash of the binary representation of the event

JSON

{
  "timestamp": 1519883600,
  "previous": "BRFnaH3UFnABQ1gV1SvT9PLo5ZMFzH7NhqDSgyn1z8wD",
  "signKey": {
    "keyType": "ed25519",
    "publicKey": "2KduZAmAKuXEL463udjCQkVfwJkBQhpciUC4gNiayjSJ"
  },
  "signature": "2hqLhbmh2eX2WhAgbwHhBZqzdpFcjWBYYN5WBj8zcYVKzVbnVH7mESCC9c9acihxWFwfvufnFYxxgFMgJPbpbU4N",
  "hash": "9Y9DhjXHdrsUE93TZzSAYBWZS5TDWWNKKh2mihqRCGXh",
  "mediaType": "application/json",
  "data": "base64:eyJmb28iOiJiYXIiLCJjb2xvciI6ImdyZWVuIn0="
}
  • previous, signKey.publicKey, signature, and hash are base58 encoded

  • data is base64 encoded, and must be prefixed with base64.

Binary schema

The binary representation is used for signing and hashing the event.

Field
Type
Length

Previous

Hash (Bytes)

32

Key type

KeyType (Byte)

1

Public key

PublicKey (Array[Byte])

32 | 33

Timestamp

Long

8

Media type length (N)

Short

2

Media type

Array[Byte]

N

Data length (M)

Short

2

Data

Array[Byte]

M

Field
Type
Length

Previous

Hash (Bytes)

32

Key type

KeyType (Byte)

1

Public key

PublicKey (Array[Byte])

32 | 33

Timestamp

Long

8

Media type

Array[Byte]

?

Data

Array[Byte]

?

PreviousEvent chainNextMessaging

Last updated 1 year ago