Skip to content

storeWallet Internal Action

Nilson Lazarin edited this page Sep 11, 2024 · 1 revision
Internal Actions Wiki

.velluscinum.storeWallet

(available at velluscinum >= 24.7.23)

Persists a belief (like: w(P,Q)) that represents the agent's digital wallet as a key pair into the project folder.

DESCRIPTION

.velluscinum.storeWallet(w(P,Q));
Parameters Description
w It's a belief that represents an agent's wallet.
P It's a literal that represents the agent's private key.
Q It's a literal that represents the agent's public key.

EXAMPLE

/* Initial beliefs and rules */
myWallet("7neiPonWcQEXBoHooxMhTVvHQFAJGDdZYF1HuPTgH5ia","C9q3KZzdBXaTyCpLUyizFXZQaPcZX3RjH8wLavRA91Lk").

/* Initial goals */
!start.

/* Plans */
+!start <- 
	?myWallet(P,Q);
	.velluscinum.storeWallet(myWallet);
.