Skip to main content

GraphKey

Overview

Represents a graph key for an Aleo account. The GraphKey class provides methods for creating graph keys from view keys. Graph keys are used to determine ownership of records through the sk_tag component.

Methods

from_view_key

Create a new graph key from a view key

from_view_key(view_key)GraphKey
ParamTypeDescription
view_keyViewKeyView key
returnGraphKeyGraph key

from_string

Create a new graph key from a string representation of a graph key

from_string(graph_key)GraphKey
ParamTypeDescription
graph_keystringString representation of a graph key
returnGraphKeyGraph key

to_string

Get a string representation of a graph key

to_string() ► string
ParamType
returnstring

sk_tag

Get the sk_tag of the graph key. Used to determine ownership of records.

sk_tag()Field
ParamType
returnField