Skip to content

loadWallet Internal Action

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

.velluscinum.loadWallet

(available at velluscinum >= 24.7.23)

Loads (or creates if not exists) the agent's key pair into the project folder, that represents a digital wallet, and returns a belief like: w(P,Q).

DESCRIPTION

.velluscinum.loadWallet(w);
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 goals */
!start.

/* Plans */
+!start <-
	.velluscinum.loadWallet(myWallet);
	.wait(myWallet(PrivateKey,PublicKey));	
	.print("This is my private key:",PrivateKey);
	.print("This is my public key:",PublicKey);
.