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许可证中定义)应为双重许可,如上所述,没有任何其他条款或条件。