Package 'MarineChain'

Title: Blockchain-Enabled Maritime Transportation System Simulator
Description: Simulates BMTS cryptographic and consensus layer operations.
Authors: Isaac Osei [aut, cre], Yamini Alakunta [aut]
Maintainer: Isaac Osei <[email protected]>
License: MIT + file LICENSE
Version: 0.1.1
Built: 2026-07-16 07:57:36 UTC
Source: https://github.com/ikemillar/marinechain

Help Index


The Application Server Logic

Description

The Application Server Logic

Usage

app_server(input, output, session)

Arguments

input

The Shiny input binding element list array mapping object.

output

The Shiny output rendering layout UI element structure list.

session

The active user environment session context container runtime.


The Application User Interface

Description

The Application User Interface

Usage

app_ui(request)

Arguments

request

The Shiny request object parameter environmental state.


Calculate Geodetic Distance (Haversine Formula)

Description

Calculate Geodetic Distance (Haversine Formula)

Usage

calc_distance(lat1, lng1, lat2, lng2)

Arguments

lat1, lng1

Latitude and Longitude of Node 1

lat2, lng2

Latitude and Longitude of Node 2

Value

Distance in kilometers


Inject Malicious Attacks into Maritime Telemetry Streams

Description

Inject Malicious Attacks into Maritime Telemetry Streams

Usage

inject_attack(clean_packet, attack_type)

Arguments

clean_packet

A list containing data, signature, and metadata from a vessel

attack_type

Character. One of "None", "Replay", "Modification", "Impersonation"

Value

A modified packet structure representing an intercepted/compromised transmission


Run the BMTS Shiny Simulator Application

Description

Run the BMTS Shiny Simulator Application

Usage

run_app()

Simulate Cryptographic Processing Overhead

Description

Simulate Cryptographic Processing Overhead

Usage

simulate_crypto_ops(data_size_kb, operation)

Arguments

data_size_kb

Numeric. Size of the sensor telemetry data in Kilobytes.

operation

Character. The step to simulate ("encrypt", "sign", "verify", "decrypt").

Value

A list containing processing time (ms) and output data size (kb).


Simulate Multi-Hop Maritime Network Routing

Description

Simulate Multi-Hop Maritime Network Routing

Usage

simulate_network_routing(vessel_coord, cs_coord, haps_coord, payload_size_kb)

Arguments

vessel_coord

Vector of c(lat, lng) for the vessel

cs_coord

Vector of c(lat, lng) for the Control Station

haps_coord

Vector of c(lat, lng) for the nearest HAPS platform

payload_size_kb

Numeric size of the telemetry packet

Value

A list detailing routing path, hop count, and transmission latency


Simulate PoAH Blockchain Block Generation

Description

Simulate PoAH Blockchain Block Generation

Usage

simulate_poah_block(dynamic_ledger, incoming_txs)

Arguments

dynamic_ledger

A list representing the current blockchain ledger

incoming_txs

A list of verified vessel data payloads to combine into a block

Value

An updated ledger list containing the new block