rust-ipns 0.9.0

Rust implementation of IPNS
Documentation
syntax = "proto3";

package ipns_pb;

message IpnsEntry {
  enum ValidityType {
    // setting an EOL says "this record is valid until..."
    EOL = 0;
  }
  optional bytes value = 1;
  optional bytes signatureV1 = 2;

  optional ValidityType validityType = 3;
  optional bytes validity = 4;

  optional uint64 sequence = 5;

  optional uint64 ttl = 6;

  // in order for nodes to properly validate a record upon receipt, they need the public
  // key associated with it. For old RSA keys, its easiest if we just send this as part of
  // the record itself. For newer ed25519 keys, the public key can be embedded in the
  // peerID, making this field unnecessary.
  optional bytes pubKey = 7;

  optional bytes signatureV2 = 8;

  optional bytes data = 9;
}

message IpnsSignatureV2Checker {
  optional bytes pubKey = 7;
  optional bytes signatureV2 = 8;
}