...两个不同类型的正整数,要比较大小怎么办呢?可以使用as做类型转换后在进行比较,如下:
```rust
public fun compare() :bool {
let a:u8 = 10;
let b:u32 = 30;
(aas u32) >= b
}
```
#### 布尔型
布尔类型使用bool表示,值有两个tru...
...ghlights
### Friends don’t let friends reuse nonces
This blog post tells a cautionary tale of what can go wrong when implementing a relatively basic type of cryptography: a bidirectional encrypted channel, such as an encrypted voice call or encrypted chat. We’ll explore how more subtle issues of...