struct

ActiveTorrent::AnnounceToken

Inherits Struct < Value < Object

Токен анонса: подпись "#{torrent_id}:#{subject}" (purpose torrent_announce). В magnet/.torrent попадает URL /announce/<token> — валидированный доступ к анонсам (§5.4).

Constructors

new(torrent_id : Int64, subject : String)
Source

Class methods

generate(torrent_id : Int64, subject : String) : String
Source
resolve(token : String) : AnnounceToken | Nil

nil для мусора/чужого purpose/просроченного.

Source

Instance methods

subject
Source
torrent_id
Source