tiny.reticulum.identity.Rotating
Defined in identity.
API (2)
Actions
Public operations.
id: Returns the first 10 bytes of the SHA-256 digest of a rotating public key, which names it so a receiver says which key opened a message, following Reticulum@1.5.0 RNS/Identity.py:396-397.publicBytes: Returns the X25519 public bytes for a rotating private key so a destination can publish them, following Reticulum@1.5.0 RNS/Identity.py:400-401.
Source
Source: lib/reticulum/src/identity/rotating.zig:6
zig
pub const Rotating = struct { /// Returns the X25519 public bytes for a rotating private key so a /// destination can publish them, following Reticulum@1.5.0 /// RNS/Identity.py:400-401. pub fn publicBytes(private: [32]u8) [32]u8 { return X25519.recoverPublicKey(private) catch unreachable; } /// Returns the first 10 bytes of the SHA-256 digest of a rotating public /// key, which names it so a receiver says which key opened a message, /// following Reticulum@1.5.0 RNS/Identity.py:396-397. pub fn id(public: [32]u8) [reticulum.hash.name_bytes]u8 { return reticulum.hash.name(&public); }};Source: lib/reticulum/src/identity/root.zig:53
zig
pub const Rotating = @import("rotating.zig").Rotating;Audit
| Definitions | 3 |
|---|---|
| Public names | 3 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |