Skip to content

buildWallet Internal Action

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

.velluscinum.buildWallet

Generates a digital wallet and returns an belief like: w(P,Q);

DESCRIPTION

.velluscinum.buildWallet(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.buildWallet(myWallet);
	.wait(myWallet(PrivateKey,PublicKey));	
	.print("This is my private key: ",PrivateKey);
	.print("This is my public key: ",PublicKey);
.