Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1023694 // agiBot_postTrustRequest

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4330L/30K).

sO agiBot_postTrustRequest(PKIKeyPair keys, S botDescription) {
  S publicKey = keys.publicKey;
  S pageName = "trust-request-" + md5(publicKey) + ".agi.blue";
  new L out;
  addAndPrint(out, agiBot_postSignedEntry(keys, pageName, "is a", "trust request"));
  addAndPrint(out, agiBot_postSignedEntry(keys, pageName, "public key", publicKey));
  addAndPrint(out, agiBot_postSignedEntry(keys, pageName, "bot descrpiption", botDescription));
  ret out;
}

Author comment

Began life as a copy of #1023693

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023694
Snippet name: agiBot_postTrustRequest
Eternal ID of this version: #1023694/5
Text MD5: ac1863931f5ca012e36f196aa85c6710
Transpilation MD5: ac8c4da64a716718e7413437a65e2b63
Author: stefan
Category: javax / agi.blue
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-03 13:16:49
Source code size: 459 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 313 / 424
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)