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).

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

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: 312 / 423
Version history: 4 change(s)
Referenced in: [show references]