Skip to content

Commit 88f0380

Browse files
fix(tokens/token-extensions/nft-meta-data-pointer/anchor-example): flag unaudited session-keys crate near declare_id
This example depends on the third-party `session-keys` crate, which has not been independently audited. Anyone reading the example landing on declare_id! should be told that up front, so add an explicit warning comment right above declare_id! explaining that this is for education only and pointing at what to do before considering it for production.
1 parent d2f0320 commit 88f0380

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • tokens/token-extensions/nft-meta-data-pointer/anchor-example/anchor/programs/extension_nft/src

tokens/token-extensions/nft-meta-data-pointer/anchor-example/anchor/programs/extension_nft/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ pub mod instructions;
77
pub mod state;
88
use instructions::*;
99

10+
// WARNING: This example depends on the `session-keys` crate, which has not
11+
// been independently audited. It is included here purely for educational
12+
// purposes - demonstrating how a game might let a player sign with a
13+
// short-lived session token instead of their main wallet. Do not ship this
14+
// crate (or this program) to mainnet in its current form: review the upstream
15+
// `session-keys` source, get an audit, and harden the session-token issuance
16+
// and expiry handling first.
1017
declare_id!("9aZZ7TJ2fQZxY8hMtWXywp5y6BgqC4N2BPcr9FDT47sW");
1118

1219
#[program]

0 commit comments

Comments
 (0)