Core LibraryunreleasedAPI Reference

Choose documentation 1

latest

Current version

latest
English

Unreleased libtmux_erlang has not been released. Its API may change during development. This site's structure and URLs may change too.

function libtmux-erlang latest

tmux_identity:fingerprint/1

Derive a portable fingerprint/0 from a captured identity without I/O.

Source and package
Qualified name
tmux_identity:fingerprint/1
Declared in
tmux_identity
Package
libtmux_erlang
Source
apps/libtmux_erlang/src/tmux_identity.erl
fingerprint/1 -spec fingerprint(t()) -> {ok, fingerprint()} | {error, #{code := invalid_identity}}.

Description#

The key includes PID, boot ID and process-start ticks. Reconnecting to the same process preserves it; changing any component changes it. The encoding is versioned for persisted plans. Use check/2 for a fresh process observation. Malformed identity terms return invalid_identity before hashing.

Examples#

1> {ok, I} = tmux_identity:observe(list_to_integer(os:getpid())), ok.
ok
2> {ok, Key} = tmux_identity:fingerprint(I), ok.
ok
3> byte_size(Key).
73
Parameters

Guides#

Pages that discuss fingerprint/1.

Esc

Type to search.

Reference previewOpen reference