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/2for 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.ok2> {ok, Key} = tmux_identity:fingerprint(I), ok.ok3> byte_size(Key).73
Guides#
Pages that discuss fingerprint/1.