pub fn encode_publish_shared_ed25519_public_key_script(public_key: Vec<u8>) -> Script {
    Script::new(
        PUBLISH_SHARED_ED25519_PUBLIC_KEY_CODE.to_vec(),
        vec![],
        vec![TransactionArgument::U8Vector(public_key)],
    )
}
/// (1) Rotate the authentication key of the sender to `public_key`
/// (2) Publish a resource containing a 32-byte ed25519 public key and the rotation capability
///     of the sender under the sender's address.
/// Aborts if the sender already has a `SharedEd25519PublicKey` resource.
/// Aborts if the length of `new_public_key` is not 32.
(1) Rotate the authentication key of the sender to `public_key`
(2) Publish a resource containing a 32-byte ed25519 public key and the rotation capability
of the sender under the sender's address.
Aborts if the sender already has a `SharedEd25519PublicKey` resource.
Aborts if the length of `new_public_key` is not 32.
( 1 ) Rotate the authentication key of the sender to ` public_key ` ( 2 ) Publish a resource containing a 32 - byte ed25519 public key and the rotation capability of the sender under the sender ' s address . Aborts if the sender already has a ` SharedEd25519PublicKey ` resource . Aborts if the length of ` new_public_key ` is not 32 .
pub fn encode_publish_shared_ed25519_public_key_script(public_key: Vec<u8>) -> Script {
    Script::new(
        PUBLISH_SHARED_ED25519_PUBLIC_KEY_CODE.to_vec(),
        vec![],
        vec![TransactionArgument::U8Vector(public_key)],
    )
}
pub fn encode_publish_shared_ed25519_public_key_script ( public_key : Vec < u8 > ) -> Script { Script :: new ( PUBLISH_SHARED_ED25519_PUBLIC_KEY_CODE . to_vec ( ) , vec ! [ ] , vec ! [ TransactionArgument U8Vector ( public_key ) ] , ) }
(1) Rotate the authentication key of the sender to `public_key`
(2) Publish a resource containing a 32-byte ed25519 public key and the rotation capability
of the sender under the sender's address.
( 1 ) Rotate the authentication key of the sender to ` public_key ` ( 2 ) Publish a resource containing a 32 - byte ed25519 public key and the rotation capability of the sender under the sender ' s address .
public_key
Vec<u8>
public_key
Vec<u8>