Skip to content

Commit

Permalink
Update version to draft 8
Browse files Browse the repository at this point in the history
  • Loading branch information
int08h committed Mar 16, 2024
1 parent f3d1122 commit bc4fa6f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "roughenough"
version = "1.2.1-draft5"
version = "1.2.1-draft8"
repository = "https://github.com/int08h/roughenough"
authors = ["Stuart Stock <[email protected]>", "Aaron Hill <[email protected]>"]
license = "Apache-2.0"
Expand Down
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,10 @@ Requires latest stable Rust to compile. Contributions welcome, see

## RFC Work-In-Progress

Roughenough implements the Roughtime protocol as specified in [the draft-5 RFC](https://www.ietf.org/archive/id/draft-ietf-ntp-roughtime-05.html).
Roughenough implements the Roughtime protocol as specified in [the draft-8 RFC](https://www.ietf.org/archive/id/draft-ietf-ntp-roughtime-08.html).

**Important differences from the draft RFC**
1. Roughenough uses SHA-512/256 to compute the Merkle tree. Draft-5 of the RFC uses a
bespoke 32-byte SHA-512 prefix without rationale or justification. Given that
standardized 32-byte SHA-512/256 exists and is already implemented widely, I'm
sticking with it while I advocate for the RFC to move away from the custom prefix
and adopt SHA-512/256.
2. The server and client send/expect RFC protocol version `1` (VER tag is `0x00000001`)
1. The server and client send/expect RFC protocol version `1` (VER tag is `0x00000001`)
instead of the draft's suggested `0x80000000 + version`.

The Roughenough server operates both the "classic" protocol **and** the RFC compliant
Expand Down Expand Up @@ -51,8 +46,8 @@ $ roughenough-client -p 1 roughtime.int08h.com 2002

### Minimum Supported Rust Version (MSRV)

Roughenough uses [2018 edition](https://rust-lang-nursery.github.io/edition-guide/rust-2018/index.html)
features and requires Rust 1.31 or newer to build.
Roughenough uses [2021 edition](https://doc.rust-lang.org/edition-guide/rust-2021/index.html)
features and requires Rust 1.72 or newer to build.

### Building

Expand Down Expand Up @@ -237,7 +232,7 @@ created by Adam Langley and Robert Obryk.
* Eric Swanson (github.com/lachesis)

## Copyright and License
Roughenough is copyright (c) 2017-2021 int08h LLC. All rights reserved.
Roughenough is copyright (c) 2017-2024 int08h LLC. All rights reserved.

int08h LLC licenses Roughenough (the "Software") to you under the Apache License, version 2.0
(the "License"); you may not use this Software except in compliance with the License. You may obtain
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub mod stats;
pub mod version;

/// Version of Roughenough
pub const VERSION: &str = "1.2.1-draft5";
pub const VERSION: &str = "1.2.1-draft8";

/// Roughenough version string enriched with any compile-time optional features
pub fn roughenough_version() -> String {
Expand Down

0 comments on commit bc4fa6f

Please sign in to comment.