solders-keypair 0.21.0

Solders keypair crate.
Documentation
Build #1686725 2025-01-29T11:38:23.771281+00:00
# rustc version
rustc 1.86.0-nightly (bf1b174e7 2025-01-28)# docs.rs version
docsrs 0.6.0 (29a0e81b 2025-01-22)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/solders-keypair-0.21.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/solders-keypair-0.21.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250128-1.86.0-nightly-bf1b174e7\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] ca9bf207c5ea66b747fd2d499f50c041f2b77afbb3de6b8a4e761bd601314fd3
[INFO] running `Command { std: "docker" "start" "-a" "ca9bf207c5ea66b747fd2d499f50c041f2b77afbb3de6b8a4e761bd601314fd3", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting solders-keypair v0.21.0 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unresolved link to `0`
[INFO] [stderr]   --> src/presigner.rs:35:5
[INFO] [stderr]    |
[INFO] [stderr] 35 | /     /// Get this signer's :class:`~solders.pubkey.Pubkey`.
[INFO] [stderr] 36 | |     ///
[INFO] [stderr] 37 | |     /// Returns:
[INFO] [stderr] 38 | |     ///     Pubkey: The pubkey of the presigner.
[INFO] [stderr] ...  |
[INFO] [stderr] 46 | |     ///     >>> assert kp.pubkey() == Pubkey(pubkey_bytes)
[INFO] [stderr] 47 | |     ///
[INFO] [stderr]    | |_______^
[INFO] [stderr]    |
[INFO] [stderr]    = note: the link appears in this line:
[INFO] [stderr]            
[INFO] [stderr]                >>> seed_bytes = bytes([0] * 32)
[INFO] [stderr]                                        ^
[INFO] [stderr]    = note: no item named `0` in scope
[INFO] [stderr]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr]    = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `int`
[INFO] [stderr]    --> src/lib.rs:92:5
[INFO] [stderr]     |
[INFO] [stderr] 92  | /     /// Returns this ``Keypair`` as a byte array.
[INFO] [stderr] 93  | |     ///
[INFO] [stderr] 94  | |     /// Returns:
[INFO] [stderr] 95  | |     ///     list[int]: the keypair as a list of 64 u8 ints.
[INFO] [stderr] ...   |
[INFO] [stderr] 100 | |     ///      >>> assert Keypair.from_bytes(raw_bytes).to_bytes_array() == list(raw_bytes)
[INFO] [stderr] 101 | |     ///
[INFO] [stderr]     | |_______^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the link appears in this line:
[INFO] [stderr]             
[INFO] [stderr]                 list[int]: the keypair as a list of 64 u8 ints.
[INFO] [stderr]                      ^^^
[INFO] [stderr]     = note: no item named `int` in scope
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `:32`
[INFO] [stderr]    --> src/lib.rs:126:5
[INFO] [stderr]     |
[INFO] [stderr] 126 | /     /// Gets this ``Keypair``'s secret key.
[INFO] [stderr] 127 | |     ///
[INFO] [stderr] 128 | |     /// Returns:
[INFO] [stderr] 129 | |     ///     bytes: The secret key in 32 bytes.
[INFO] [stderr] ...   |
[INFO] [stderr] 134 | |     ///     >>> assert kp.secret() == bytes(kp)[:32]
[INFO] [stderr] 135 | |     ///
[INFO] [stderr]     | |_______^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the link appears in this line:
[INFO] [stderr]             
[INFO] [stderr]                 >>> assert kp.secret() == bytes(kp)[:32]
[INFO] [stderr]                                                     ^^^
[INFO] [stderr]     = note: no item named `:32` in scope
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `0`
[INFO] [stderr]    --> src/lib.rs:141:5
[INFO] [stderr]     |
[INFO] [stderr] 141 | /     /// Get this keypair's :class:`~solders.pubkey.Pubkey`.
[INFO] [stderr] 142 | |     ///
[INFO] [stderr] 143 | |     /// Returns:
[INFO] [stderr] 144 | |     ///     Pubkey: the pubkey of this keypair.
[INFO] [stderr] ...   |
[INFO] [stderr] 152 | |     ///     >>> assert kp.pubkey() == Pubkey(pubkey_bytes)
[INFO] [stderr] 153 | |     ///
[INFO] [stderr]     | |_______^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the link appears in this line:
[INFO] [stderr]             
[INFO] [stderr]                 >>> seed_bytes = bytes([0] * 32)
[INFO] [stderr]                                         ^
[INFO] [stderr]     = note: no item named `0` in scope
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `1`
[INFO] [stderr]    --> src/lib.rs:159:5
[INFO] [stderr]     |
[INFO] [stderr] 159 | /     /// Sign a mesage with this keypair, producing an Ed25519 signature over the provided message bytes.
[INFO] [stderr] 160 | |     ///
[INFO] [stderr] 161 | |     /// Args:
[INFO] [stderr] 162 | |     ///     message (bytes): The message to sign.
[INFO] [stderr] ...   |
[INFO] [stderr] 174 | |     ///     'e1430c6ebd0d53573b5c803452174f8991ef5955e0906a09e8fdc7310459e9c82a402526748c3431fe7f0e5faafbf7e703234789734063ee42be17af1643...
[INFO] [stderr] 175 | |     ///
[INFO] [stderr]     | |_______^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the link appears in this line:
[INFO] [stderr]             
[INFO] [stderr]                 >>> seed = bytes([1] * 32)
[INFO] [stderr]                                   ^
[INFO] [stderr]     = note: no item named `1` in scope
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `0`
[INFO] [stderr]    --> src/lib.rs:181:5
[INFO] [stderr]     |
[INFO] [stderr] 181 | /     /// Generate a keypair from a 32-byte seed.
[INFO] [stderr] 182 | |     ///
[INFO] [stderr] 183 | |     /// Args:
[INFO] [stderr] 184 | |     ///     seed (bytes): 32-byte seed.
[INFO] [stderr] ...   |
[INFO] [stderr] 194 | |     ///     >>> assert from_seed == from_bytes
[INFO] [stderr] 195 | |     ///
[INFO] [stderr]     | |_______^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the link appears in this line:
[INFO] [stderr]             
[INFO] [stderr]                 >>> seed_bytes = bytes([0] * 32)
[INFO] [stderr]                                         ^
[INFO] [stderr]     = note: no item named `0` in scope
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `0`
[INFO] [stderr]    --> src/lib.rs:201:5
[INFO] [stderr]     |
[INFO] [stderr] 201 | /     /// Generate a keypair from a 32-byte seed and derivation path..
[INFO] [stderr] 202 | |     ///
[INFO] [stderr] 203 | |     /// Args:
[INFO] [stderr] 204 | |     ///     seed (bytes): 32-byte seed.
[INFO] [stderr] ...   |
[INFO] [stderr] 215 | |     ///     >>> from_seed = Keypair.from_seed_and_derivation_path(seed_bytes, derivation_path)
[INFO] [stderr] 216 | |     ///
[INFO] [stderr]     | |_______^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the link appears in this line:
[INFO] [stderr]             
[INFO] [stderr]                 >>> seed_bytes = bytes([0] * 64)
[INFO] [stderr]                                         ^
[INFO] [stderr]     = note: no item named `0` in scope
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `:32`
[INFO] [stderr]    --> src/lib.rs:225:5
[INFO] [stderr]     |
[INFO] [stderr] 225 | /     /// Generate a keypair from a seed phrase and passphrase.
[INFO] [stderr] 226 | |     ///
[INFO] [stderr] 227 | |     /// Args:
[INFO] [stderr] 228 | |     ///     seed_phrase (string): Secret seed phrase.
[INFO] [stderr] ...   |
[INFO] [stderr] 239 | |     ///     >>> assert keypair.pubkey() == expected_keypair.pubkey()
[INFO] [stderr] 240 | |     ///
[INFO] [stderr]     | |_______^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the link appears in this line:
[INFO] [stderr]             
[INFO] [stderr]                 >>> expected_keypair = Keypair.from_seed(bytes(seed)[:32])
[INFO] [stderr]                                                                      ^^^
[INFO] [stderr]     = note: no item named `:32` in scope
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: `solders-keypair` (lib doc) generated 8 warnings
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.19s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/solders_keypair/index.html
[INFO] running `Command { std: "docker" "inspect" "ca9bf207c5ea66b747fd2d499f50c041f2b77afbb3de6b8a4e761bd601314fd3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ca9bf207c5ea66b747fd2d499f50c041f2b77afbb3de6b8a4e761bd601314fd3", kill_on_drop: false }`
[INFO] [stdout] ca9bf207c5ea66b747fd2d499f50c041f2b77afbb3de6b8a4e761bd601314fd3