ctlog
1.0.0
ctlog
簡單的證書透明度日誌客戶端API包裝器由ReqWest提供動力
use anyhow :: Result ;
use ctlog :: CTLogV1 ;
# [ tokio :: main ]
async fn main ( ) -> Result < ( ) > {
// Create a new CTLogV1 client for TrustAsia logs
let ctlog = CTLogV1 :: new ( "https://ct.trustasia.com/log2023/" ) ? ;
// Get the sth
let sth = ctlog . get_sth ( ) . await ? ;
println ! ( "{:#?}" , sth ) ;
Ok ( ( ) )
}
目前僅支持V1 API(RFC6962)
根據任何一個
可以選擇。
除非您另有明確說明,否則任何有意提交的捐款(如Apache-2.0許可證中定義)應為雙重許可,如上所述,沒有任何其他條款或條件。